@@ -238,10 +238,6 @@ else if (option.equals("class"))
238238 */
239239 public Log log ;
240240
241- /** Whether or not the options lint category was initially disabled
242- */
243- boolean optionsCheckingInitiallyDisabled ;
244-
245241 /** Factory for creating diagnostic objects
246242 */
247243 JCDiagnostic .Factory diagFactory ;
@@ -439,12 +435,6 @@ public JavaCompiler(Context context) {
439435 moduleFinder .moduleNameFromSourceReader = this ::readModuleName ;
440436
441437 options = Options .instance (context );
442- // See if lint options checking was explicitly disabled by the
443- // user; this is distinct from the options check being
444- // enabled/disabled.
445- optionsCheckingInitiallyDisabled =
446- options .isSet (Option .XLINT_CUSTOM , "-options" ) ||
447- options .isSet (Option .XLINT_CUSTOM , "none" );
448438
449439 verbose = options .isSet (VERBOSE );
450440 sourceOutput = options .isSet (PRINTSOURCE ); // used to be -s
@@ -928,11 +918,6 @@ public void compile(Collection<JavaFileObject> sourceFileObjects,
928918 checkReusable ();
929919 hasBeenUsed = true ;
930920
931- // forcibly set the equivalent of -Xlint:-options, so that no further
932- // warnings about command line options are generated from this point on
933- options .put (XLINT_CUSTOM .primaryName + "-" + LintCategory .OPTIONS .option , "true" );
934- options .remove (XLINT_CUSTOM .primaryName + LintCategory .OPTIONS .option );
935-
936921 start_msec = now ();
937922
938923 try {
0 commit comments