mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Great refactoring
This commit is contained in:
@@ -92,8 +92,7 @@ public class TCPSocketReplicationNativeTest {
|
||||
|
||||
LongValue value = DataValueClasses.newDirectReference(LongValue.class);
|
||||
|
||||
try (WriteContext<Integer, LongValue> c = map1
|
||||
.acquireUsingLocked(1, value)) {
|
||||
try (MapKeyContext<LongValue> c = map1.acquireContext(1, value)) {
|
||||
value.setValue(10);
|
||||
}
|
||||
|
||||
@@ -109,13 +108,11 @@ public class TCPSocketReplicationNativeTest {
|
||||
|
||||
LongValue value = DataValueClasses.newDirectReference(LongValue.class);
|
||||
|
||||
try (WriteContext<Integer, LongValue> c = map1
|
||||
.acquireUsingLocked(1, value)) {
|
||||
try (MapKeyContext<LongValue> c = map1.acquireContext(1, value)) {
|
||||
value.setValue(10);
|
||||
}
|
||||
|
||||
try (WriteContext<Integer, LongValue> c = map1
|
||||
.acquireUsingLocked(1, value)) {
|
||||
try (MapKeyContext<LongValue> c = map1.acquireContext(1, value)) {
|
||||
value.setValue(20);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user