This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git

commit bddd6a0ec11f2512bebe699c0870591750d0de60
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jul 19 13:39:11 2025 -0400

    Fix all PMD UnnecessaryFullyQualifiedName in DefaultStringLookupsHolder
---
 src/changes/changes.xml                                               | 1 +
 src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 27bdd1f4..5d28354f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
   <release version="1.14.0" date="YYYY-MM-DD" description="Release 1.14.0. 
Requires Java 8 or above.">
     <!-- FIX -->
     <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix all PMD 
UnnecessaryFullyQualifiedName in StringLookupFactory.</action>
+    <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix all PMD 
UnnecessaryFullyQualifiedName in DefaultStringLookupsHolder.</action>
     <!-- ADD -->
     <action type="add" dev="ggregory" due-to="Gary Gregory">Interface 
StringLookup now extends UnaryOperator&lt;String&gt;.</action>
     <action type="add" dev="ggregory" due-to="Gary Gregory">Interface 
TextRandomProvider extends IntUnaryOperator.</action>
diff --git 
a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java 
b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
index 448588eb..8a8b484f 100644
--- a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
+++ b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java
@@ -345,8 +345,8 @@ public final class StringLookupFactory {
          * @param props initialization properties
          */
         DefaultStringLookupsHolder(final Properties props) {
-            final Map<String, StringLookup> lookups = 
props.containsKey(StringLookupFactory.DEFAULT_STRING_LOOKUPS_PROPERTY)
-                    ? 
parseStringLookups(props.getProperty(StringLookupFactory.DEFAULT_STRING_LOOKUPS_PROPERTY))
+            final Map<String, StringLookup> lookups = 
props.containsKey(DEFAULT_STRING_LOOKUPS_PROPERTY)
+                    ? 
parseStringLookups(props.getProperty(DEFAULT_STRING_LOOKUPS_PROPERTY))
                     : createDefaultStringLookups();
             defaultStringLookups = Collections.unmodifiableMap(lookups);
         }

Reply via email to