mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8352731: Compiler workaround to forcibly set "-Xlint:-options" can be removed
Reviewed-by: mcimadamore
This commit is contained in:
parent
2321722a45
commit
e604bb9e94
@ -238,10 +238,6 @@ public class JavaCompiler {
|
||||
*/
|
||||
public Log log;
|
||||
|
||||
/** Whether or not the options lint category was initially disabled
|
||||
*/
|
||||
boolean optionsCheckingInitiallyDisabled;
|
||||
|
||||
/** Factory for creating diagnostic objects
|
||||
*/
|
||||
JCDiagnostic.Factory diagFactory;
|
||||
@ -439,12 +435,6 @@ public class JavaCompiler {
|
||||
moduleFinder.moduleNameFromSourceReader = this::readModuleName;
|
||||
|
||||
options = Options.instance(context);
|
||||
// See if lint options checking was explicitly disabled by the
|
||||
// user; this is distinct from the options check being
|
||||
// enabled/disabled.
|
||||
optionsCheckingInitiallyDisabled =
|
||||
options.isSet(Option.XLINT_CUSTOM, "-options") ||
|
||||
options.isSet(Option.XLINT_CUSTOM, "none");
|
||||
|
||||
verbose = options.isSet(VERBOSE);
|
||||
sourceOutput = options.isSet(PRINTSOURCE); // used to be -s
|
||||
@ -928,11 +918,6 @@ public class JavaCompiler {
|
||||
checkReusable();
|
||||
hasBeenUsed = true;
|
||||
|
||||
// forcibly set the equivalent of -Xlint:-options, so that no further
|
||||
// warnings about command line options are generated from this point on
|
||||
options.put(XLINT_CUSTOM.primaryName + "-" + LintCategory.OPTIONS.option, "true");
|
||||
options.remove(XLINT_CUSTOM.primaryName + LintCategory.OPTIONS.option);
|
||||
|
||||
start_msec = now();
|
||||
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user