From 845901bf3936bb6f8b744d3d4edec213a1d0e712 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Tue, 24 Jan 2023 15:23:53 +0100 Subject: [PATCH] Start changing some tests --- .../errorprone/refasterrules/ImmutableListRulesTestInput.java | 4 ++-- .../refasterrules/ImmutableListRulesTestOutput.java | 4 ++-- .../errorprone/refasterrules/ImmutableSetRulesTestInput.java | 4 ++-- .../errorprone/refasterrules/ImmutableSetRulesTestOutput.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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 8a8623f0bf..961107faee 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 6a026f8c45..fe45516810 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 9a457ff05b..866c4d67c8 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 21e612a36f..553ef7271a 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() {