diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableSetMultimapTemplates.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableSetMultimapTemplates.java index 9ced96ce20..d851cbaeb8 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableSetMultimapTemplates.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refastertemplates/ImmutableSetMultimapTemplates.java @@ -162,7 +162,7 @@ ImmutableSetMultimap before(Multimap multimap) { @AfterTemplate ImmutableSetMultimap after(Multimap multimap) { return ImmutableSetMultimap.copyOf( - Multimaps.transformValues(multimap, v -> valueTransformation(v))); + Multimaps.transformValues(multimap, e -> valueTransformation(e))); } } diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/bugpatterns/ImmutableSetMultimapTemplatesTestOutput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/bugpatterns/ImmutableSetMultimapTemplatesTestOutput.java index 835b77a589..a40daadd0d 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/bugpatterns/ImmutableSetMultimapTemplatesTestOutput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/bugpatterns/ImmutableSetMultimapTemplatesTestOutput.java @@ -53,7 +53,7 @@ ImmutableSetMultimap testStreamOfMapEntriesToImmutableSetMultim ImmutableSetMultimap testTransformMultimapValuesToImmutableSetMultimap() { return ImmutableSetMultimap.copyOf( - Multimaps.transformValues(ImmutableSetMultimap.of("foo", 1L), v -> Math.toIntExact(v))); + Multimaps.transformValues(ImmutableSetMultimap.of("foo", 1L), e -> Math.toIntExact(e))); } ImmutableSet>