diff --git a/core/src/processing/data/FloatDict.java b/core/src/processing/data/FloatDict.java index 3ef440595..518699dd9 100644 --- a/core/src/processing/data/FloatDict.java +++ b/core/src/processing/data/FloatDict.java @@ -23,7 +23,7 @@ public class FloatDict { protected float[] values; /** Internal implementation for faster lookups */ - private HashMap indices = new HashMap(); + private HashMap indices = new HashMap<>(); public FloatDict() { @@ -146,12 +146,12 @@ public class FloatDict { */ public void clear() { count = 0; - indices = new HashMap(); + indices = new HashMap<>(); } private void resetIndices() { - indices = new HashMap(count); + indices = new HashMap<>(count); for (int i = 0; i < count; i++) { indices.put(keys[i], i); } diff --git a/core/src/processing/data/IntDict.java b/core/src/processing/data/IntDict.java index c3e684fab..8a11b44b9 100644 --- a/core/src/processing/data/IntDict.java +++ b/core/src/processing/data/IntDict.java @@ -23,7 +23,7 @@ public class IntDict { protected int[] values; /** Internal implementation for faster lookups */ - private HashMap indices = new HashMap(); + private HashMap indices = new HashMap<>(); public IntDict() { @@ -147,12 +147,12 @@ public class IntDict { */ public void clear() { count = 0; - indices = new HashMap(); + indices = new HashMap<>(); } private void resetIndices() { - indices = new HashMap(count); + indices = new HashMap<>(count); for (int i = 0; i < count; i++) { indices.put(keys[i], i); } diff --git a/core/src/processing/data/StringDict.java b/core/src/processing/data/StringDict.java index 6204ef523..dc695642a 100644 --- a/core/src/processing/data/StringDict.java +++ b/core/src/processing/data/StringDict.java @@ -23,7 +23,7 @@ public class StringDict { protected String[] values; /** Internal implementation for faster lookups */ - private HashMap indices = new HashMap(); + private HashMap indices = new HashMap<>(); public StringDict() { @@ -168,12 +168,12 @@ public class StringDict { */ public void clear() { count = 0; - indices = new HashMap(); + indices = new HashMap<>(); } private void resetIndices() { - indices = new HashMap(count); + indices = new HashMap<>(count); for (int i = 0; i < count; i++) { indices.put(keys[i], i); }