mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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;
|
||||
|
||||
/**
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user