From c99cac3e3bf0691a6dafcf8e1bd6cff6e2367bb6 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 5 Jul 2022 12:55:25 -0400 Subject: [PATCH] Remove single use locval variable --- src/test/java/org/apache/commons/lang3/AbstractLangTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/AbstractLangTest.java b/src/test/java/org/apache/commons/lang3/AbstractLangTest.java index ab002ce5d..432b5434b 100644 --- a/src/test/java/org/apache/commons/lang3/AbstractLangTest.java +++ b/src/test/java/org/apache/commons/lang3/AbstractLangTest.java @@ -34,8 +34,7 @@ public class AbstractLangTest { } void validateNullToStringStyleRegistry() { - final Map registry = ToStringStyle.getRegistry(); - assertNull(registry, "Expected null, actual: " + registry); + assertNull(ToStringStyle.getRegistry(), "Expected null, actual: " + ToStringStyle.getRegistry()); } }