From: Julien HENRY Date: Mon, 1 Sep 2014 16:06:31 +0000 (+0200) Subject: Fix some quality flaws X-Git-Tag: 4.5-RC1~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef0e5c2fe11ec9df4faeed0572b54bcf216d3dad;p=sonarqube.git Fix some quality flaws --- 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;