aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-11-14 16:13:35 +0100
committersonartech <sonartech@sonarsource.com>2024-11-15 20:02:42 +0000
commitf4fbfe9415a713bd0df9c3f964591b3b7418c1d8 (patch)
tree2f7b3708c502196a96d7f0dbe6ba1010270bbe03 /sonar-scanner-engine
parent997997559ba55d5ef05d4ca837697a48b9d6d5c3 (diff)
downloadsonarqube-f4fbfe9415a713bd0df9c3f964591b3b7418c1d8.tar.gz
sonarqube-f4fbfe9415a713bd0df9c3f964591b3b7418c1d8.zip
SONAR-23623 Remove useless remains of the SCA prototype
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssuePublisher.java5
-rw-r--r--sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java4
2 files changed, 0 insertions, 9 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 47e5f8fe1d7..6de30db7829 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
@@ -39,7 +39,6 @@ import org.sonar.api.batch.sensor.issue.Issue;
import org.sonar.api.batch.sensor.issue.Issue.Flow;
import org.sonar.api.batch.sensor.issue.MessageFormatting;
import org.sonar.api.batch.sensor.issue.NewIssue.FlowType;
-import org.sonar.api.batch.sensor.issue.internal.DefaultExternalIssue;
import org.sonar.api.batch.sensor.issue.internal.DefaultIssueFlow;
import org.sonar.api.issue.impact.SoftwareQuality;
import org.sonar.api.rules.CleanCodeAttribute;
@@ -184,10 +183,6 @@ public class IssuePublisher {
TextRange primaryTextRange = issue.primaryLocation().textRange();
// nullable fields
- var cveId = ((DefaultExternalIssue) issue).cveId();
- if (cveId != null) {
- builder.setCveId(cveId);
- }
CleanCodeAttribute cleanCodeAttribute = issue.cleanCodeAttribute();
if (cleanCodeAttribute != null) {
builder.setCleanCodeAttribute(cleanCodeAttribute.name());
diff --git a/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java b/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java
index 584bf3dbfd7..21c1cd56c47 100644
--- a/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java
+++ b/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java
@@ -199,10 +199,6 @@ public class AnalysisResult implements AnalysisObserver {
return readFromReport(ScannerReportReader::readAdHocRules);
}
- public List<ScannerReport.Cve> cves() {
- return readFromReport(ScannerReportReader::readCves);
- }
-
public List<ScannerReport.Dependency> dependencies() {
return readFromReport(ScannerReportReader::readDependencies);
}