use of org.infernus.idea.checkstyle.csapi.ProcessResultsThread in project checkstyle-idea by jshiell.
the class CheckStyleAuditListener method auditFinished.
public void auditFinished(final AuditEvent auditEvent) {
List<Issue> errorsCopy;
synchronized (errors) {
errorsCopy = new ArrayList<>(errors);
}
final ProcessResultsThread findThread = new ProcessResultsThread(suppressErrors, checks, tabWidth, baseDir, errorsCopy, fileNamesToPsiFiles);
final Application application = ApplicationManager.getApplication();
if (application != null) {
// can be null in unit tests
application.runReadAction(findThread);
problems = findThread.getProblems();
}
}
Aggregations