mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
make ThreadLocals transient for gson compat in Java 17
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user