1.1 --- a/src/share/classes/com/sun/tools/javac/util/List.java Mon Dec 13 14:08:01 2010 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/util/List.java Mon Dec 13 15:11:00 2010 -0800 1.3 @@ -103,7 +103,7 @@ 1.4 1.5 /** Construct a list consisting of given elements. 1.6 */ 1.7 - @SuppressWarnings("varargs") 1.8 + @SuppressWarnings({"varargs", "unchecked"}) 1.9 public static <A> List<A> of(A x1, A x2, A x3, A... rest) { 1.10 return new List<A>(x1, new List<A>(x2, new List<A>(x3, from(rest)))); 1.11 }