equal
deleted
inserted
replaced
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); |