Skip to content

Commit 5725ca0

Browse files
committed
Use correct type for value field in non-object value type map entry
1 parent 4d79fb0 commit 5725ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/ConcurrentChainedHashTable.java.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ public class CLASS_TYPE(K,V) implements Iterable<CLASS_NAME.TABLE_ENTRY_TYPE(K,V
20212021
private final KEY_TYPE key;
20222022

20232023
private volatile VALUE_TYPE value;
2024-
private static final VarHandle VALUE_HANDLE = ConcurrentUtil.getVarHandle(TABLE_ENTRY_NAME.class, "value", Object.class);
2024+
private static final VarHandle VALUE_HANDLE = ConcurrentUtil.getVarHandle(TABLE_ENTRY_NAME.class, "value", VALUE_TYPE_RAW.class);
20252025

20262026
private VALUE_TYPE getValuePlain() {
20272027
//noinspection unchecked

0 commit comments

Comments
 (0)