Fix bug in ThreadLocal

This commit is contained in:
Alexey Andreev 2019-07-25 11:14:04 +03:00
parent a9ba21889a
commit b5f64fd11a

View File

@ -15,11 +15,6 @@
*/
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;
}