Skip to content

Commit

Permalink
Do not lint when focusing on 1 particular position
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Nov 19, 2024
1 parent 6b3c622 commit f2003ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public Void visitClass(ClassTree node, Void p) {
boolean docEnabled = JavaCore.ENABLED.equals(compilerOptions.get(JavaCore.COMPILER_DOC_COMMENT_SUPPORT));
JavacUtils.configureJavacContext(context, compilerOptions, javaProject, JavacUtils.isTest(javaProject, sourceUnits));
Options javacOptions = Options.instance(context);
if (!resolveBindings && (flags & ICompilationUnit.FORCE_PROBLEM_DETECTION) == 0) {
if ((focalPoint >= 0 || !resolveBindings) && (flags & ICompilationUnit.FORCE_PROBLEM_DETECTION) == 0) {
// most likely no need for linting
// resolveBindings still seems requested for tests
javacOptions.remove(Option.XLINT.primaryName);
Expand Down

0 comments on commit f2003ac

Please sign in to comment.