Skip to content

Commit 959d707

Browse files
committed
Skip unused/restricted access checks when lint isn't requested
1 parent 15521ce commit 959d707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacCompilationUnitResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ public void finished(TaskEvent e) {
603603
problemConverter.registerUnit(e.getSourceFile(), u);
604604
}
605605

606-
if (e.getKind() == TaskEvent.Kind.ANALYZE) {
606+
if (e.getKind() == TaskEvent.Kind.ANALYZE && Options.instance(context).isSet(Option.XLINT)) {
607607
final JavaFileObject file = e.getSourceFile();
608608
final CompilationUnit dom = filesToUnits.get(file);
609609
if (dom == null) {

0 commit comments

Comments
 (0)