make ThreadLocals transient for gson compat in Java 17

This commit is contained in:
Jonathan Shook
2021-12-21 13:08:03 -06:00
parent 3a0186fef4
commit 9c765f29a8
32 changed files with 38 additions and 39 deletions

View File

@@ -16,7 +16,7 @@ public class ThreadSafeHash implements LongUnaryOperator {
// private ByteBuffer bb = ByteBuffer.allocate(Long.BYTES);
// private Murmur3F murmur3F= new Murmur3F();
private static ThreadLocal<HashState> tlstate = ThreadLocal.withInitial(HashState::new);
private final transient static ThreadLocal<HashState> tlstate = ThreadLocal.withInitial(HashState::new);
@Override
public long applyAsLong(long value) {