]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some quality flaws
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 1 Sep 2014 16:06:31 +0000 (18:06 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 1 Sep 2014 16:06:31 +0000 (18:06 +0200)
sonar-duplications/src/main/java/org/sonar/duplications/internal/pmd/PmdBlockChunker.java

index c2e42cad0a160ee880ec3f2ff7fd078d0414da76..1d32920872162748142c4c2df3961adc8bd93577 100644 (file)
@@ -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;