mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix bug in ThreadLocal
This commit is contained in:
parent
a9ba21889a
commit
b5f64fd11a
|
@ -15,11 +15,6 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.classlib.java.lang;
|
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 {
|
public class TThreadLocal<T> extends TObject {
|
||||||
private boolean initialized;
|
private boolean initialized;
|
||||||
private T value;
|
private T value;
|
||||||
|
@ -41,6 +36,7 @@ public class TThreadLocal<T> extends TObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set(T value) {
|
public void set(T value) {
|
||||||
|
initialized = true;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user