test/tools/javac/diags/examples/VarargsNonReifiableType.java

changeset 795
7b99f98b3035
parent 610
3640b60bd0f6
child 2525
2eb010b6cb22
equal deleted inserted replaced
794:2f2ead61db06 795:7b99f98b3035
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.warn.varargs.non.reifiable.type 24 // key: compiler.warn.unchecked.varargs.non.reifiable.type
25 // options: -Xlint:varargs 25 // options: -Xlint:unchecked
26
27 import java.util.*;
28 26
29 class VarargsNonReifiableType<T> { 27 class VarargsNonReifiableType<T> {
30 void m(T... items) { 28 void m(T... items) {
31 } 29 }
32 } 30 }

mercurial