From 140895c52d9adc08444cb5483648bb05affbb182 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Mon, 23 Oct 2023 07:38:00 +0200 Subject: [PATCH] Rename parameters --- .../picnic/errorprone/refasterrules/AssertJMapRules.java | 6 +++--- .../tech/picnic/errorprone/refasterrules/AssertJRules.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJMapRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJMapRules.java index 53288f7611..7ce1551c3e 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJMapRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJMapRules.java @@ -29,13 +29,13 @@ static final class AbstractMapAssertIsEmpty { void before( AbstractMapAssert mapAssert, @Matches(IsEmpty.class) Map wellTypedMap, - @Matches(IsEmpty.class) Map arbitraryMap, + @Matches(IsEmpty.class) Map arbitrarilyTypedMap, @Matches(IsEmpty.class) Iterable keys) { Refaster.anyOf( mapAssert.containsExactlyEntriesOf(wellTypedMap), mapAssert.containsExactlyInAnyOrderEntriesOf(wellTypedMap), - mapAssert.hasSameSizeAs(arbitraryMap), - mapAssert.isEqualTo(arbitraryMap), + mapAssert.hasSameSizeAs(arbitrarilyTypedMap), + mapAssert.isEqualTo(arbitrarilyTypedMap), mapAssert.containsOnlyKeys(keys), mapAssert.containsExactly(), mapAssert.containsOnly(), diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJRules.java index 51ddd80a88..84bac00845 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/AssertJRules.java @@ -180,12 +180,12 @@ static final class AssertThatObjectEnumerableIsEmpty { void before( ObjectEnumerableAssert enumAssert, @Matches(IsEmpty.class) Iterable wellTypedIterable, - @Matches(IsEmpty.class) Iterable arbitraryIterable) { + @Matches(IsEmpty.class) Iterable arbitrarilyTypedIterable) { Refaster.anyOf( enumAssert.containsExactlyElementsOf(wellTypedIterable), enumAssert.containsExactlyInAnyOrderElementsOf(wellTypedIterable), enumAssert.hasSameElementsAs(wellTypedIterable), - enumAssert.hasSameSizeAs(arbitraryIterable), + enumAssert.hasSameSizeAs(arbitrarilyTypedIterable), enumAssert.isSubsetOf(wellTypedIterable), enumAssert.containsExactly(), enumAssert.containsExactlyInAnyOrder(),