From 97d9e8101ec3ca13fbdd753ce3153aadcea3c5cd Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Tue, 2 May 2023 10:14:35 +0200 Subject: [PATCH] Semi-related tweak --- .../picnic/errorprone/refasterrules/PrimitiveRules.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/PrimitiveRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/PrimitiveRules.java index 4b39b61c0d3..f0d39d03202 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/PrimitiveRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/PrimitiveRules.java @@ -76,13 +76,13 @@ boolean after(double a, double b) { /** Prefer {@link Math#toIntExact(long)} over the Guava alternative. */ static final class LongToIntExact { @BeforeTemplate - int before(long a) { - return Ints.checkedCast(a); + int before(long l) { + return Ints.checkedCast(l); } @AfterTemplate - int after(long a) { - return Math.toIntExact(a); + int after(long l) { + return Math.toIntExact(l); } }