aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src
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-duplications/src
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-duplications/src')
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java b/sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java
index f992b942982..4438e197abe 100644
--- a/sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java
+++ b/sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java
@@ -21,6 +21,9 @@ package org.sonar.duplications.internal.pmd;
import java.util.ArrayList;
import java.util.List;
+
+import javax.annotation.concurrent.Immutable;
+
import org.sonar.duplications.block.Block;
import org.sonar.duplications.block.ByteArray;
@@ -29,6 +32,7 @@ import org.sonar.duplications.block.ByteArray;
* works with {@link TokensLine},
* sets {@link Block#getStartUnit() startUnit} and {@link Block#getEndUnit() endUnit} - indexes of first and last token for this block.
*/
+@Immutable
public class PmdBlockChunker {
private static final long PRIME_BASE = 31;