mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Removed ChronicleHash.context() method and changed acquireContext() return type from deprecated MapKeyContext to Closeable
This commit is contained in:
@@ -30,9 +30,7 @@ class WriteThroughEntry<K, V> extends AbstractMap.SimpleEntry<K, V> {
|
||||
|
||||
@Override
|
||||
public V setValue(V value) {
|
||||
try (MapKeyContext<K, V> c = map.context(getKey())) {
|
||||
c.put(value);
|
||||
}
|
||||
map.put(getKey(), value);
|
||||
return super.setValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user