jdk/src/share/classes/java/util/Arrays.java
changeset 7803 56bc97d69d93
parent 6896 d229d56fd918
child 7816 55a18147b4bf
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
  2822      *
  2822      *
  2823      * @param a the array by which the list will be backed
  2823      * @param a the array by which the list will be backed
  2824      * @return a list view of the specified array
  2824      * @return a list view of the specified array
  2825      */
  2825      */
  2826     public static <T> List<T> asList(T... a) {
  2826     public static <T> List<T> asList(T... a) {
  2827         return new ArrayList<T>(a);
  2827         return new ArrayList<>(a);
  2828     }
  2828     }
  2829 
  2829 
  2830     /**
  2830     /**
  2831      * @serial include
  2831      * @serial include
  2832      */
  2832      */