`
文章列表
from:http://hi.baidu.com/thethinking/blog/item/7be2861e98f28e15413417f1.html
from:http://blog.csdn.net/hzcyclone/article/details/6293916
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); from:http://stackoverflow.com/questions/421280/in-java-how-do-i-find-the-caller-of-a-method-using-stacktrace-or-reflection

emma

    博客分类:
  • Java
<taskdef resource="emma_ant.properties" /> <property name="emma.enabled" value="true" /> <property name="out.instr.dir" value="./outinstr" /> <target name="emma" description="turns on EMMA's instrumentation/r ...

JPA

    博客分类:
  • Java
@MaxSize(3000) @Column(length=3000) public String description;

doxygen

    博客分类:
  • Java
<property name="ant_doxygen.dir" location="doxygen" /> <taskdef name="doxygen" classname="org.doxygen.tools.DoxygenTask" /> <target name="doxygen"> <delete dir="${ant_doxygen.dir}" /> <mkdir dir="${ant_ ...

schmeSpy

    博客分类:
  • Java
<property name="report.dir" value="schema" /> <property name="database" value="XXXXXXXXX" /> <property name="userid" value="XXX" /> <property name="password" value="XXX" /> ...
转载分享:http://v.youku.com/v_show/id_XMzIwMzgxNDg4.html  
public class PingPong { /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { Thread t = new Thread() { @Override public void run() { pong(); } }; t.start(); // not t.run(); // Thread.sleep(3000); // t.j ...

readResolve

    博客分类:
  • Java
public class Dog extends Exception { public static final Dog INSTANCE = new Dog(); private Dog() { } public String toString() { return "Woof"; } //make instance the same one private Object readResolve() { return INSTANCE; } } import java.io.By ...
Global site tag (gtag.js) - Google Analytics