Collection syntax change because of Sonar
[aaf/authz.git] / cadi / core / src / test / java / org / onap / aaf / cadi / util / test / JU_Pool.java
index 7920932..b9f0e99 100644 (file)
@@ -71,7 +71,7 @@ public class JU_Pool {
        public void getTest() throws CadiException {
                Pool<Integer> intPool = new Pool<Integer>(new IntegerCreator());
 
-               List<Pooled<Integer>> gotten = new ArrayList<Pooled<Integer>>();
+               List<Pooled<Integer>> gotten = new ArrayList<>();
                for (int i = 0; i < 10; i++) {
                        gotten.add(intPool.get());
                        assertThat(gotten.get(i).content, is(i));