@Override public void reportIssue(JavaCheck javaCheck, Tree syntaxNode, String message, List<Location> secondary, @Nullable Integer cost) { List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); issues.add(createAnalyzerMessage(getFile(), javaCheck, syntaxNode, null, message, flows, cost)); }
private AnalyzerMessage createAnalyzerMessage(JavaCheck javaCheck, Tree startTree, @Nullable Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); return createAnalyzerMessage(getFile(), javaCheck, startTree, endTree, message, flows, cost); } }
private AnalyzerMessage createAnalyzerMessage(JavaCheck javaCheck, Tree startTree, @Nullable Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); return createAnalyzerMessage(getFile(), javaCheck, startTree, endTree, message, flows, cost); } }
@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message) { issues.add(createAnalyzerMessage(javaCheck, startTree, endTree, message, ImmutableList.of(), null)); }
@Override public AnalyzerMessage createAnalyzerMessage(JavaCheck javaCheck, Tree startTree, String message) { return createAnalyzerMessage(getFile(), javaCheck, startTree, null, message, Arrays.asList(), null); }
@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { issues.add(createAnalyzerMessage(javaCheck, startTree, endTree, message, secondary, cost)); }
@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message) { issues.add(createAnalyzerMessage(javaCheck, startTree, endTree, message, ImmutableList.of(), null)); }
@Override public void reportIssue(JavaCheck javaCheck, Tree syntaxNode, String message, List<Location> secondary, @Nullable Integer cost) { List<List<Location>> flows = secondary.stream().map(Collections::singletonList).collect(Collectors.toList()); issues.add(createAnalyzerMessage(getFile(), javaCheck, syntaxNode, null, message, flows, cost)); }
@Override public AnalyzerMessage createAnalyzerMessage(JavaCheck javaCheck, Tree startTree, String message) { return createAnalyzerMessage(getFile(), javaCheck, startTree, null, message, Arrays.asList(), null); }
@Override public void reportIssue(JavaCheck javaCheck, Tree startTree, Tree endTree, String message, List<Location> secondary, @Nullable Integer cost) { issues.add(createAnalyzerMessage(javaCheck, startTree, endTree, message, secondary, cost)); }
@Override public void reportIssueWithFlow(JavaCheck javaCheck, Tree syntaxNode, String message, Iterable<List<Location>> flows, @Nullable Integer cost) { issues.add(createAnalyzerMessage(getFile(), javaCheck, syntaxNode, null, message, flows, cost)); }
@Override public void reportIssueWithFlow(JavaCheck javaCheck, Tree syntaxNode, String message, Iterable<List<Location>> flows, @Nullable Integer cost) { issues.add(createAnalyzerMessage(getFile(), javaCheck, syntaxNode, null, message, flows, cost)); }