Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->

Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)
This commit is contained in:
Yan Zhulanow
2016-06-21 21:19:14 +03:00
committed by Yan Zhulanow
parent 884e653490
commit 84d62f37eb
12 changed files with 93 additions and 27 deletions
@@ -28,6 +28,11 @@ public class FilteringMessageCollector implements MessageCollector {
this.decline = decline;
}
@Override
public void clear() {
messageCollector.clear();
}
@Override
public void report(
@NotNull CompilerMessageSeverity severity, @NotNull String message, @NotNull CompilerMessageLocation location
@@ -33,6 +33,11 @@ public class GroupingMessageCollector implements MessageCollector {
this.delegate = delegate;
}
@Override
public void clear() {
groupedMessages.clear();
}
@Override
public void report(
@NotNull CompilerMessageSeverity severity,
@@ -25,12 +25,19 @@ public interface MessageCollector {
// Do nothing
}
@Override
public void clear() {
// Do nothing
}
@Override
public boolean hasErrors() {
return false;
}
};
void clear();
void report(@NotNull CompilerMessageSeverity severity, @NotNull String message, @NotNull CompilerMessageLocation location);
boolean hasErrors();