reverted back to allow acquireUsing to be passsed a NULL value

This commit is contained in:
Rob Austin
2014-11-11 08:56:36 +00:00
parent edf2927a06
commit 94aabe3911
6 changed files with 7 additions and 7 deletions
@@ -383,7 +383,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, KI>,
@Override
public V acquireUsing(@NotNull K key, @NotNull V usingValue) {
public V acquireUsing(@NotNull K key, V usingValue) {
try (WriteContext<K, V> kvContext =
lookupUsing(key, usingValue, LockType.WRITE_LOCK, false)) {
@@ -856,7 +856,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, KI>,
}
V acquireWithoutLock(ThreadLocalCopies copies, MKI metaKeyInterop, KI keyInterop, K key, V usingValue,
long hash2, boolean create) {
long hash2, boolean create) {
long keySize = metaKeyInterop.size(keyInterop, key);
MultiStoreBytes entry = acquireTmpBytes();
long offset = searchKey(keyInterop, metaKeyInterop, key, keySize, hash2, entry,