aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-07-10 10:38:27 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2017-07-11 08:51:38 +0200
commit6f107dcbe90b0fea564e1ecaa96643bfc539329a (patch)
tree45478253f6006a0f1381fb506f92852ad2f5c5df /sonar-scanner-protocol
parentf6a0f6bb86f7d244bec0b6781020e2ea066124c6 (diff)
downloadsonarqube-6f107dcbe90b0fea564e1ecaa96643bfc539329a.tar.gz
sonarqube-6f107dcbe90b0fea564e1ecaa96643bfc539329a.zip
SONAR-9477 Deprecate ProjectReactor and ProjectBuilder
Mark Immutable classes in the Plugin API and Scanner
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r--sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/FileStructure.java3
-rw-r--r--sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportWriter.java4
2 files changed, 7 insertions, 0 deletions
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/FileStructure.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/FileStructure.java
index f61d225128d..e8468cc79d3 100644
--- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/FileStructure.java
+++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/FileStructure.java
@@ -21,9 +21,12 @@ package org.sonar.scanner.protocol.output;
import java.io.File;
+import javax.annotation.concurrent.Immutable;
+
/**
* Structure of files in the zipped report
*/
+@Immutable
public class FileStructure {
public enum Domain {
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportWriter.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportWriter.java
index 9cca4f6d5ca..9ce6547ff52 100644
--- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportWriter.java
+++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/output/ScannerReportWriter.java
@@ -23,9 +23,13 @@ import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
+
+import javax.annotation.concurrent.Immutable;
+
import org.sonar.core.util.ContextException;
import org.sonar.core.util.Protobuf;
+@Immutable
public class ScannerReportWriter {
private final FileStructure fileStructure;