From b5f64fd11a22adb2cb24d47ba19a5a1a95542c63 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 25 Jul 2019 11:14:04 +0300 Subject: [PATCH] Fix bug in ThreadLocal --- .../java/org/teavm/classlib/java/lang/TThreadLocal.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; }