src/share/classes/java/util/Arrays.java

Print this page
rev 3186 : 6880112: Project Coin: Port JDK core library code to use diamond operator

@@ -2822,11 +2822,11 @@
      *
      * @param a the array by which the list will be backed
      * @return a list view of the specified array
      */
     public static <T> List<T> asList(T... a) {
-        return new ArrayList<T>(a);
+        return new ArrayList<>(a);
     }
 
     /**
      * @serial include
      */