langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/List.java
changeset 42828 cce89649f958
parent 42827 36468b5fa7f4
equal deleted inserted replaced
42827:36468b5fa7f4 42828:cce89649f958
   132     }
   132     }
   133 
   133 
   134     /** Construct a list consisting of given element.
   134     /** Construct a list consisting of given element.
   135      */
   135      */
   136     public static <A> List<A> of(A x1) {
   136     public static <A> List<A> of(A x1) {
   137         return new List<>(x1, List.<A>nil());
   137         return new List<>(x1, List.nil());
   138     }
   138     }
   139 
   139 
   140     /** Construct a list consisting of given elements.
   140     /** Construct a list consisting of given elements.
   141      */
   141      */
   142     public static <A> List<A> of(A x1, A x2) {
   142     public static <A> List<A> of(A x1, A x2) {