diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TThreadLocal.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TThreadLocal.java index ec9a3a080..061f987a6 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TThreadLocal.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TThreadLocal.java @@ -15,11 +15,6 @@ */ package org.teavm.classlib.java.lang; -/** - * - * @author Alexey Andreev - * @param type of a value stored by thread local. - */ public class TThreadLocal extends TObject { private boolean initialized; private T value; @@ -41,6 +36,7 @@ public class TThreadLocal extends TObject { } public void set(T value) { + initialized = true; this.value = value; }