下面我有它運行在JDK5移植JDK1.5 ThreadLocal的代碼JDK1.4
private static ThreadLocal<String> messages = new ThreadLocal<String>();
private static ThreadLocal<Boolean> dontIntercept = new ThreadLocal<Boolean>() {
@Override
protected Boolean initialValue() {
return Boolean.FALSE;
}
};
我希望在JDK1.4運行一塊代碼。請諮詢需要進行哪些更改