--- a/jdk/test/java/util/Deque/ChorusLine.java Fri Feb 03 13:24:59 2017 -0800
+++ b/jdk/test/java/util/Deque/ChorusLine.java Fri Feb 03 13:24:59 2017 -0800
@@ -131,7 +131,7 @@
}}};
private static void realMain(String[] args) throws Throwable {
- Collection<Deque<Integer>> deqs = new ArrayDeque<Deque<Integer>>(3);
+ Collection<Deque<Integer>> deqs = new ArrayDeque<>(3);
deqs.add(new ArrayDeque<Integer>());
deqs.add(new LinkedList<Integer>());
deqs.add(new LinkedBlockingDeque<Integer>());
@@ -157,12 +157,12 @@
prev = deq;
}
- Deque<Iterator<Integer>> its = new ArrayDeque<Iterator<Integer>>();
+ Deque<Iterator<Integer>> its = new ArrayDeque<>();
for (Deque<Integer> deq : deqs)
its.addLast(deq.iterator());
equal(its);
- Deque<Iterator<Integer>> dits = new ArrayDeque<Iterator<Integer>>();
+ Deque<Iterator<Integer>> dits = new ArrayDeque<>();
for (Deque<Integer> deq : deqs)
dits.addLast(deq.descendingIterator());
equal(dits);