From ef0e5c2fe11ec9df4faeed0572b54bcf216d3dad Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 1 Sep 2014 18:06:31 +0200 Subject: [PATCH] Fix some quality flaws --- .../org/sonar/duplications/internal/pmd/PmdBlockChunker.java | 3 +-- 1 file changed, 1 insertion(+), 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 blocks = Lists.newArrayListWithCapacity(fragmentsArr.length - blockSize + 1); + List blocks = Lists.newArrayListWithCapacity(fragmentsArr.length - blockSize + 1); long hash = 0; int first = 0; int last = 0; -- 2.39.5