aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-09-15 13:49:31 -0500
committersonartech <sonartech@sonarsource.com>2022-09-16 20:03:14 +0000
commitf51e80efde03d0af839d4991a31300f0f36088d3 (patch)
tree7c9f36e736e1ab83714c92512df0790242e4ca14 /sonar-scanner-engine/src/main/java
parent227f5d3bfc797c8ecc7ebe7e283af3b68522c1ad (diff)
downloadsonarqube-f51e80efde03d0af839d4991a31300f0f36088d3.tar.gz
sonarqube-f51e80efde03d0af839d4991a31300f0f36088d3.zip
SONAR-17287 Fix quality issues and adopt changes to API
Diffstat (limited to 'sonar-scanner-engine/src/main/java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java
index 965600c0a22..8688c6a3ebe 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java
@@ -32,6 +32,7 @@ import org.sonar.api.batch.rule.ActiveRules;
import org.sonar.api.batch.sensor.issue.ExternalIssue;
import org.sonar.api.batch.sensor.issue.Issue;
import org.sonar.api.batch.sensor.issue.Issue.Flow;
+import org.sonar.api.batch.sensor.issue.NewIssue.FlowType;
import org.sonar.api.batch.sensor.issue.internal.DefaultIssueFlow;
import org.sonar.scanner.protocol.Constants.Severity;
import org.sonar.scanner.protocol.output.ScannerReport;
@@ -181,15 +182,15 @@ public class IssuePublisher {
}
flowBuilder.addLocation(locationBuilder.build());
}
- if (flow.getDescription() != null) {
- flowBuilder.setDescription(flow.getDescription());
+ if (flow.description() != null) {
+ flowBuilder.setDescription(flow.description());
}
- flowBuilder.setType(toProtobufFlowType(flow.getType()));
+ flowBuilder.setType(toProtobufFlowType(flow.type()));
consumer.accept(flowBuilder.build());
}
}
- private static ScannerReport.FlowType toProtobufFlowType(DefaultIssueFlow.Type flowType) {
+ private static ScannerReport.FlowType toProtobufFlowType(FlowType flowType) {
switch (flowType) {
case EXECUTION:
return ScannerReport.FlowType.EXECUTION;