void (String[] args) { <warning descr="Unchecked generics array creation for varargs parameter">asList</warning>(new ArrayList<String>()); ArrayList<String>[] arrayOfStrings = null; asList(arrayOfStrings); asList((ArrayList<String>[])null); //overload should be chosen before target type is known -> inference failure <error descr="Incompatible types. Found: 'java.util.List<java.util.ArrayList<java.lang.String>>', required: 'java.util.List<java.util.ArrayList<java.lang.String>[]>'">List<ArrayList<String>[]> arraysList = asList(arrayOfStrings);</error> System.out.println(arraysList); asListSuppressed(new ArrayList<String>()); //noinspection unchecked asList(new ArrayList<String>()); <warning descr="Unchecked generics array creation for varargs parameter">asStringList</warning>(new ArrayList<String>()); asQList(new ArrayList<String>()); asIntList(1); final ArrayList<String> list = new ArrayList<String>(); <warning descr="Unchecked generics array creation for varargs parameter">asList</warning>(list); }