From bea5bd3c0a443d64899fb9e4898697da47caad4f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 4 Nov 2022 15:56:18 -0400 Subject: [PATCH] Remove single use local var --- .../java/org/apache/commons/lang3/builder/EqualsBuilder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java index 3727be769..ae321c9fe 100644 --- a/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java @@ -187,8 +187,7 @@ public class EqualsBuilder implements Builder { private static void unregister(final Object lhs, final Object rhs) { final Set> registry = getRegistry(); if (registry != null) { - final Pair pair = getRegisterPair(lhs, rhs); - registry.remove(pair); + registry.remove(getRegisterPair(lhs, rhs)); if (registry.isEmpty()) { REGISTRY.remove(); }