src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java

changeset 377
d9febdd5ae21
parent 229
03bcd66bd8e7
child 554
9d9f26857129
equal deleted inserted replaced
376:61c1f735df67 377:d9febdd5ae21
36 import com.sun.tools.javac.util.Options; 36 import com.sun.tools.javac.util.Options;
37 import com.sun.tools.javac.processing.JavacProcessingEnvironment; 37 import com.sun.tools.javac.processing.JavacProcessingEnvironment;
38 import java.io.File; 38 import java.io.File;
39 import java.io.FileWriter; 39 import java.io.FileWriter;
40 import java.io.PrintWriter; 40 import java.io.PrintWriter;
41 import java.util.Collection;
42 import java.util.EnumSet; 41 import java.util.EnumSet;
43 import java.util.LinkedHashSet; 42 import java.util.LinkedHashMap;
43 import java.util.Map;
44 import java.util.Set; 44 import java.util.Set;
45 import javax.lang.model.SourceVersion; 45 import javax.lang.model.SourceVersion;
46 46
47 import static com.sun.tools.javac.main.OptionName.*; 47 import static com.sun.tools.javac.main.OptionName.*;
48 48
596 } 596 }
597 }, 597 },
598 }; 598 };
599 } 599 }
600 600
601 private static Collection<String> getXLintChoices() { 601 private static Map<String,Boolean> getXLintChoices() {
602 Collection<String> choices = new LinkedHashSet<String>(); 602 Map<String,Boolean> choices = new LinkedHashMap<String,Boolean>();
603 choices.add("all"); 603 choices.put("all", false);
604 for (Lint.LintCategory c : Lint.LintCategory.values()) 604 for (Lint.LintCategory c : Lint.LintCategory.values())
605 choices.add(c.option); 605 choices.put(c.option, c.hidden);
606 for (Lint.LintCategory c : Lint.LintCategory.values()) 606 for (Lint.LintCategory c : Lint.LintCategory.values())
607 choices.add("-" + c.option); 607 choices.put("-" + c.option, c.hidden);
608 choices.add("none"); 608 choices.put("none", false);
609 return choices; 609 return choices;
610 } 610 }
611 611
612 } 612 }

mercurial