diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestInput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestInput.java index 8a8623f0bfd..961107faeed 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestInput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestInput.java @@ -20,8 +20,8 @@ public ImmutableSet elidedTypesAndStaticImports() { Arrays.class, Collections.class, Comparator.class, Streams.class, naturalOrder()); } - ImmutableList.Builder testImmutableListBuilder() { - return new ImmutableList.Builder<>(); + ImmutableSet> testImmutableListBuilder() { + return ImmutableSet.of(new ImmutableList.Builder<>(), new ImmutableList.Builder()); } ImmutableSet> testIterableToImmutableList() { diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestOutput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestOutput.java index 6a026f8c45a..fe455168104 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestOutput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableListRulesTestOutput.java @@ -21,8 +21,8 @@ public ImmutableSet elidedTypesAndStaticImports() { Arrays.class, Collections.class, Comparator.class, Streams.class, naturalOrder()); } - ImmutableList.Builder testImmutableListBuilder() { - return ImmutableList.builder(); + ImmutableSet> testImmutableListBuilder() { + return ImmutableSet.of(ImmutableList.builder(), ImmutableListbuilder()); } ImmutableSet> testIterableToImmutableList() { diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestInput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestInput.java index 9a457ff05bb..866c4d67c8d 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestInput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestInput.java @@ -18,8 +18,8 @@ public ImmutableSet elidedTypesAndStaticImports() { return ImmutableSet.of(Arrays.class, Collections.class, Streams.class); } - ImmutableSet.Builder testImmutableSetBuilder() { - return new ImmutableSet.Builder<>(); + ImmutableSet> testImmutableSetBuilder() { + return ImmutableSet.of(new ImmutableSet.Builder<>(), new ImmutableSet.Builder()); } ImmutableSet> testIterableToImmutableSet() { diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestOutput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestOutput.java index 21e612a36fb..553ef7271a0 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestOutput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ImmutableSetRulesTestOutput.java @@ -18,8 +18,8 @@ public ImmutableSet elidedTypesAndStaticImports() { return ImmutableSet.of(Arrays.class, Collections.class, Streams.class); } - ImmutableSet.Builder testImmutableSetBuilder() { - return ImmutableSet.builder(); + ImmutableSet> testImmutableSetBuilder() { + return ImmutableSet.of(ImmutableSet.builder(), ImmutableSet.builder()); } ImmutableSet> testIterableToImmutableSet() {