diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-01 18:06:31 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-01 18:06:31 +0200 |
commit | ef0e5c2fe11ec9df4faeed0572b54bcf216d3dad (patch) | |
tree | ea3dfc942f730a1d1abd2d537c301c49c40cc97c /sonar-duplications/src/main/java | |
parent | a9bd7ecdd2b0f138275c1bb2954ab6ee9b804844 (diff) | |
download | sonarqube-ef0e5c2fe11ec9df4faeed0572b54bcf216d3dad.tar.gz sonarqube-ef0e5c2fe11ec9df4faeed0572b54bcf216d3dad.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-duplications/src/main/java')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java | 3 |
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; |