Search in sources :

Example 1 with IssueLocation

use of org.sonar.api.batch.sensor.issue.IssueLocation in project sonarqube by SonarSource.

the class DefaultIssue method addFlow.

@Override
public DefaultIssue addFlow(Iterable<NewIssueLocation> locations) {
    List<IssueLocation> flowAsList = new ArrayList<>();
    for (NewIssueLocation issueLocation : locations) {
        flowAsList.add((DefaultIssueLocation) issueLocation);
    }
    flows.add(flowAsList);
    return this;
}
Also used : NewIssueLocation(org.sonar.api.batch.sensor.issue.NewIssueLocation) ArrayList(java.util.ArrayList) IssueLocation(org.sonar.api.batch.sensor.issue.IssueLocation) NewIssueLocation(org.sonar.api.batch.sensor.issue.NewIssueLocation)

Aggregations

ArrayList (java.util.ArrayList)1 IssueLocation (org.sonar.api.batch.sensor.issue.IssueLocation)1 NewIssueLocation (org.sonar.api.batch.sensor.issue.NewIssueLocation)1