From a0eaa515635cfe4c2bc8b8b359b5bd38f4a988c5 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Tue, 14 Jun 2022 16:55:28 +0200 Subject: [PATCH] Drop `ImmutableSet` imports in the tests --- ...MissingImmutableSortedSetDefaultCheckTest.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/MissingImmutableSortedSetDefaultCheckTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/MissingImmutableSortedSetDefaultCheckTest.java index 43121116c5a..dec6a045b82 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/MissingImmutableSortedSetDefaultCheckTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/MissingImmutableSortedSetDefaultCheckTest.java @@ -20,7 +20,6 @@ void identification() { .addSourceLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -104,7 +103,6 @@ void replacementInImmutableInterface() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -123,7 +121,6 @@ void replacementInImmutableInterface() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -149,7 +146,6 @@ void replacementInModifiableInterface() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -168,7 +164,6 @@ void replacementInModifiableInterface() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -194,7 +189,6 @@ void replacementInImmutableAbstractClass() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -213,7 +207,6 @@ void replacementInImmutableAbstractClass() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -239,7 +232,6 @@ void replacementInModifiableAbstractClass() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -258,7 +250,6 @@ void replacementInModifiableAbstractClass() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -285,7 +276,6 @@ void secondaryReplacementInModifiableInterface() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -304,7 +294,6 @@ void secondaryReplacementInModifiableInterface() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Modifiable", @@ -332,7 +321,6 @@ void secondaryReplacementInImmutableAbstractClass() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -351,7 +339,6 @@ void secondaryReplacementInImmutableAbstractClass() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "@Value.Immutable", @@ -378,7 +365,6 @@ void noReplacementInNormalClass() { .addInputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "abstract class E {", @@ -396,7 +382,6 @@ void noReplacementInNormalClass() { .addOutputLines( "A.java", "import org.immutables.value.Value;", - "import com.google.common.collect.ImmutableSet;", "import com.google.common.collect.ImmutableSortedSet;", "", "abstract class E {",