Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java
index f3412ab002e..a996799ed43 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CharArrayMapTest.java
@@ -68,7 +68,7 @@ public class CharArrayMapTest extends TestCase {
private static long timeMap(char[][] keys) {
long start = System.currentTimeMillis();
- CharArrayMap<Integer> map = new CharArrayMap<Integer>(keys.length);
+ CharArrayMap<Integer> map = new CharArrayMap<>(keys.length);
for (int i = 0; i < keys.length; i++) {
map.put(keys[i], i);
}
@@ -98,7 +98,7 @@ public class CharArrayMapTest extends TestCase {
char[] key3 = "third key".toCharArray();
char[] key4 = "forth key".toCharArray();
- CharArrayMap<Integer> map = new CharArrayMap<Integer>();
+ CharArrayMap<Integer> map = new CharArrayMap<>();
assertTrue(map.isEmpty());
assertEquals(0, map.size());
@@ -125,7 +125,7 @@ public class CharArrayMapTest extends TestCase {
assertTrue(map.containsValue(3));
assertTrue(map.containsValue(4));
- Set<Integer> values = new HashSet<Integer>();
+ Set<Integer> values = new HashSet<>();
values.add(1);
values.add(2);
values.add(3);
@@ -178,7 +178,7 @@ public class CharArrayMapTest extends TestCase {
"metallica".toCharArray(), "in flames".toCharArray(), "lamb of god".toCharArray(),
"carcass".toCharArray() };
- CharArrayMap<Integer> map = new CharArrayMap<Integer>();
+ CharArrayMap<Integer> map = new CharArrayMap<>();
assertTrue(map.isEmpty());
assertEquals(0, map.size());
@@ -200,7 +200,7 @@ public class CharArrayMapTest extends TestCase {
assertTrue(map.containsValue(i));
}
- Set<Integer> values = new HashSet<Integer>();
+ Set<Integer> values = new HashSet<>();
for (int i = 0; i < keys.length; i++) {
values.add(i);
}
@@ -267,7 +267,7 @@ public class CharArrayMapTest extends TestCase {
public void testProperFail() {
char[] hello = "hello".toCharArray();
- CharArrayMap<Integer> map = new CharArrayMap<Integer>();
+ CharArrayMap<Integer> map = new CharArrayMap<>();
Integer value = 9;
try {

Back to the top