@@ -238,10 +238,6 @@ else if (option.equals("class"))
238
238
*/
239
239
public Log log ;
240
240
241
- /** Whether or not the options lint category was initially disabled
242
- */
243
- boolean optionsCheckingInitiallyDisabled ;
244
-
245
241
/** Factory for creating diagnostic objects
246
242
*/
247
243
JCDiagnostic .Factory diagFactory ;
@@ -439,12 +435,6 @@ public JavaCompiler(Context context) {
439
435
moduleFinder .moduleNameFromSourceReader = this ::readModuleName ;
440
436
441
437
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" );
448
438
449
439
verbose = options .isSet (VERBOSE );
450
440
sourceOutput = options .isSet (PRINTSOURCE ); // used to be -s
@@ -928,11 +918,6 @@ public void compile(Collection<JavaFileObject> sourceFileObjects,
928
918
checkReusable ();
929
919
hasBeenUsed = true ;
930
920
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
-
936
921
start_msec = now ();
937
922
938
923
try {
0 commit comments