diff options
author | Julien HENRY <henryju@yahoo.fr> | 2017-10-03 18:33:55 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-10-04 13:48:58 +0200 |
commit | 7aae33867472515bcec1d5161e6fca8d31d6c0bd (patch) | |
tree | 1b22504ab0daf84301c42ecbcdab0ce7ff38c0c2 /sonar-duplications/src/test/java/org/sonar/duplications/block | |
parent | b811d8eaa4bce4d6bdd5ec7164ecb4ad5fa979c8 (diff) | |
download | sonarqube-7aae33867472515bcec1d5161e6fca8d31d6c0bd.tar.gz sonarqube-7aae33867472515bcec1d5161e6fca8d31d6c0bd.zip |
SONAR-9111 Remove Guava dependency from sonar-duplications
Diffstat (limited to 'sonar-duplications/src/test/java/org/sonar/duplications/block')
-rw-r--r-- | sonar-duplications/src/test/java/org/sonar/duplications/block/BlockChunkerTestCase.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-duplications/src/test/java/org/sonar/duplications/block/BlockChunkerTestCase.java b/sonar-duplications/src/test/java/org/sonar/duplications/block/BlockChunkerTestCase.java index 2a3576936a8..86716386be7 100644 --- a/sonar-duplications/src/test/java/org/sonar/duplications/block/BlockChunkerTestCase.java +++ b/sonar-duplications/src/test/java/org/sonar/duplications/block/BlockChunkerTestCase.java @@ -19,14 +19,16 @@ */ package org.sonar.duplications.block; -import com.google.common.collect.Lists; -import org.junit.Test; -import org.sonar.duplications.statement.Statement; - +import java.util.ArrayList; import java.util.Collections; import java.util.List; +import org.junit.Test; +import org.sonar.duplications.statement.Statement; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.not; +import static org.hamcrest.Matchers.sameInstance; import static org.junit.Assert.assertThat; /** @@ -131,7 +133,7 @@ public abstract class BlockChunkerTestCase { * Creates list of statements from Strings, each statement on a new line starting from 0. */ protected static List<Statement> createStatementsFromStrings(String... values) { - List<Statement> result = Lists.newArrayList(); + List<Statement> result = new ArrayList<>(); for (int i = 0; i < values.length; i++) { result.add(new Statement(i, i, values[i])); } |