mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
reverted back to allow acquireUsing to be passsed a NULL value
This commit is contained in:
@@ -418,7 +418,7 @@ public class ChronicleMapTest {
|
||||
map.close();
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test
|
||||
public void testAcquireWithNullContainer() throws Exception {
|
||||
ChronicleMap<CharSequence, LongValue> map = getSharedMap(10 * 1000, 128, 24);
|
||||
map.acquireUsing("key", new LongValue$$Native());
|
||||
|
||||
@@ -246,7 +246,7 @@ public class ReplicationCheckingMap<K, V> implements ChronicleMap<K, V> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public V acquireUsing(@NotNull K key, @NotNull V usingValue) {
|
||||
public V acquireUsing(@NotNull K key, V usingValue) {
|
||||
return map1.acquireUsing(key, usingValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ public class StatelessChronicleMapTest extends JSR166TestCase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public V acquireUsing(@NotNull K key, @NotNull V usingValue) {
|
||||
public V acquireUsing(@NotNull K key,V usingValue) {
|
||||
return d.acquireUsing(key, usingValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user