Fix bug in ThreadLocal
*/
package org.teavm.classlib.java.lang;
-/**
- *
- * @author Alexey Andreev
- * @param <T> type of a value stored by thread local.
- */
public class TThreadLocal<T> extends TObject {
private boolean initialized;
private T value;
@@ -41,6 +36,7 @@ public class TThreadLocal<T> extends TObject {
}
public void set(T value) {
+ initialized = true;
this.value = value;
}
