mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-27 20:26:07 +00:00
Revert to using <> for Type Inference
This commit is contained in:
parent
2706144f14
commit
df99976dbc
@ -22,8 +22,8 @@ public class TrackDatabase implements Database {
|
||||
}
|
||||
|
||||
public void startTrack() {
|
||||
changes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
deletes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
changes = new HashMap<>();
|
||||
deletes = new HashMap<>();
|
||||
trackingChanges = true;
|
||||
}
|
||||
|
||||
@ -36,15 +36,15 @@ public class TrackDatabase implements Database {
|
||||
}
|
||||
|
||||
public void rollbackTrack() {
|
||||
changes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
deletes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
changes = new HashMap<>();
|
||||
deletes = new HashMap<>();
|
||||
changes = null;
|
||||
trackingChanges = false;
|
||||
}
|
||||
|
||||
public void put(byte[] key, byte[] value) {
|
||||
if (trackingChanges) {
|
||||
changes.put( new ByteArrayWrapper(key) , value);
|
||||
changes.put(new ByteArrayWrapper(key), value);
|
||||
} else {
|
||||
db.put(key, value);
|
||||
}
|
||||
|
@ -24,8 +24,8 @@ public class TrackTrie implements TrieFacade {
|
||||
}
|
||||
|
||||
public void startTrack() {
|
||||
changes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
deletes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
changes = new HashMap<>();
|
||||
deletes = new HashMap<>();
|
||||
trackingChanges = true;
|
||||
}
|
||||
|
||||
@ -38,8 +38,8 @@ public class TrackTrie implements TrieFacade {
|
||||
}
|
||||
|
||||
public void rollbackTrack() {
|
||||
changes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
deletes = new HashMap<ByteArrayWrapper, byte[]>();
|
||||
changes = new HashMap<>();
|
||||
deletes = new HashMap<>();
|
||||
changes = null;
|
||||
trackingChanges = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user