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 84882105be..61fa54e65f 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 b152693d25..ac04fd42cf 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 53e7c41556..18f26ea85f 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 @@ -21,8 +21,8 @@ public ImmutableSet elidedTypesAndStaticImports() { return ImmutableSet.of(Arrays.class, Collections.class, Streams.class, not(null)); } - 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 74a6c9d67e..2c4330db05 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 @@ -21,8 +21,8 @@ public ImmutableSet elidedTypesAndStaticImports() { return ImmutableSet.of(Arrays.class, Collections.class, Streams.class, not(null)); } - ImmutableSet.Builder testImmutableSetBuilder() { - return ImmutableSet.builder(); + ImmutableSet> testImmutableSetBuilder() { + return ImmutableSet.of(ImmutableSet.builder(), ImmutableSet.builder()); } ImmutableSet> testIterableToImmutableSet() {