@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { throwIfEndOfAnalysisCheck(javaCheck); List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); reportIssue(createAnalyzerMessage(file, javaCheck, startTree, endTree, message, flows, cost)); }
@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { throwIfEndOfAnalysisCheck(javaCheck); List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); reportIssue(createAnalyzerMessage(file, javaCheck, startTree, endTree, message, flows, cost)); }
@Override public void reportIssueWithFlow(JavaCheck javaCheck, Tree syntaxNode, String message, Iterable<List<Location>> flows, @Nullable Integer cost) { throwIfEndOfAnalysisCheck(javaCheck); reportIssue(createAnalyzerMessage(file, javaCheck, syntaxNode, null, message, flows, cost)); }
@Override public void reportIssueWithFlow(JavaCheck javaCheck, Tree syntaxNode, String message, Iterable<List<Location>> flows, @Nullable Integer cost) { throwIfEndOfAnalysisCheck(javaCheck); reportIssue(createAnalyzerMessage(file, javaCheck, syntaxNode, null, message, flows, cost)); }