aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java3
1 files changed, 1 insertions, 2 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 c2e42cad0a1..1d329208721 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
@@ -23,7 +23,6 @@ import com.google.common.collect.Lists;
import org.sonar.duplications.block.Block;
import org.sonar.duplications.block.ByteArray;
-import java.util.ArrayList;
import java.util.List;
/**
@@ -72,7 +71,7 @@ public class PmdBlockChunker {
return Lists.newArrayList();
}
TokensLine[] fragmentsArr = fragments.toArray(new TokensLine[fragments.size()]);
- ArrayList<Block> blocks = Lists.newArrayListWithCapacity(fragmentsArr.length - blockSize + 1);
+ List<Block> blocks = Lists.newArrayListWithCapacity(fragmentsArr.length - blockSize + 1);
long hash = 0;
int first = 0;
int last = 0;