- 浏览: 109818 次
- 性别:
- 来自: 杭州
最新评论
文章列表
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
<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 ...
@MaxSize(3000)
@Column(length=3000)
public String description;
<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_ ...
<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 ...
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 ...