--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java 2016-10-17 14:53:06.091119846 -0700 +++ new/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java 2016-10-17 14:53:05.971114642 -0700 @@ -37,6 +37,7 @@ import java.util.EnumSet; import java.util.Iterator; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.Locale; import java.util.Map; import java.util.ServiceLoader; @@ -111,7 +112,6 @@ "all", log.localize(PrefixKind.JAVAC, "opt.Xlint.all"))); for (LintCategory lc : LintCategory.values()) { - if (lc.hidden) continue; log.printRawLines(WriterKind.STDOUT, String.format(LINT_KEY_FORMAT, lc.option, @@ -801,8 +801,8 @@ /** The kind of choices for this option, if any. */ private final ChoiceKind choiceKind; - /** The choices for this option, if any, and whether or not the choices are hidden. */ - private final Map choices; + /** The choices for this option, if any. */ + private final Set choices; /** * Looks up the first option matching the given argument in the full set of options. @@ -815,7 +815,8 @@ /** * Looks up the first option matching the given argument within a set of options. - * @param arg the argument to be matches + * @param arg the argument to be matched + * @param options the set of possible options * @return the first option that matches, or null if none. */ public static Option lookup(String arg, Set