aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6177732 aoqi@0: * @summary add hidden option to have compiler generate diagnostics in more machine-readable form aoqi@0: * @compile/ref=Warning.out -XDrawDiagnostics -Xlint:unchecked Warning.java aoqi@0: */ aoqi@0: aoqi@0: import java.util.HashSet; aoqi@0: import java.util.Set; aoqi@0: aoqi@0: class Warning aoqi@0: { aoqi@0: static void useUnchecked() { aoqi@0: Set s = new HashSet(); aoqi@0: s.add("abc"); aoqi@0: } aoqi@0: }