langtools/src/share/classes/com/sun/tools/javac/main/Option.java
changeset 22163 3651128c74eb
parent 22153 f9f06fcca59d
child 23114 7fe55d6324d5
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
   562         this(text, null, descrKey, kind, group, choiceKind,
   562         this(text, null, descrKey, kind, group, choiceKind,
   563                 createChoices(choices), false);
   563                 createChoices(choices), false);
   564     }
   564     }
   565     // where
   565     // where
   566         private static Map<String,Boolean> createChoices(String... choices) {
   566         private static Map<String,Boolean> createChoices(String... choices) {
   567             Map<String,Boolean> map = new LinkedHashMap<String,Boolean>();
   567             Map<String,Boolean> map = new LinkedHashMap<>();
   568             for (String c: choices)
   568             for (String c: choices)
   569                 map.put(c, false);
   569                 map.put(c, false);
   570             return map;
   570             return map;
   571         }
   571         }
   572 
   572 
   717                     : PkgInfo.valueOf(StringUtils.toUpperCase(v)));
   717                     : PkgInfo.valueOf(StringUtils.toUpperCase(v)));
   718         }
   718         }
   719     }
   719     }
   720 
   720 
   721     private static Map<String,Boolean> getXLintChoices() {
   721     private static Map<String,Boolean> getXLintChoices() {
   722         Map<String,Boolean> choices = new LinkedHashMap<String,Boolean>();
   722         Map<String,Boolean> choices = new LinkedHashMap<>();
   723         choices.put("all", false);
   723         choices.put("all", false);
   724         for (Lint.LintCategory c : Lint.LintCategory.values())
   724         for (Lint.LintCategory c : Lint.LintCategory.values())
   725             choices.put(c.option, c.hidden);
   725             choices.put(c.option, c.hidden);
   726         for (Lint.LintCategory c : Lint.LintCategory.values())
   726         for (Lint.LintCategory c : Lint.LintCategory.values())
   727             choices.put("-" + c.option, c.hidden);
   727             choices.put("-" + c.option, c.hidden);