Removed ChronicleHash.context() method and changed acquireContext() return type from deprecated MapKeyContext to Closeable

This commit is contained in:
leventov
2015-07-24 03:43:50 +03:00
parent 5b23bd6f45
commit 912a3cc2fc
27 changed files with 689 additions and 667 deletions
@@ -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);
}
}