From 6f107dcbe90b0fea564e1ecaa96643bfc539329a Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 10 Jul 2017 10:38:27 +0200 Subject: SONAR-9477 Deprecate ProjectReactor and ProjectBuilder Mark Immutable classes in the Plugin API and Scanner --- .../java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sonar-duplications/src') 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; -- cgit v1.2.3