Revert to using <> for Type Inference

This commit is contained in:
nicksavers 2014-07-03 10:59:26 +02:00
parent 2706144f14
commit df99976dbc
2 changed files with 9 additions and 9 deletions

View File

@ -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);
}

View File

@ -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;
}