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 45ca471fb75213b243c9e2da459f38934f4e6317 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 19 13:35:41 2025 -0400 Fix all PMD UnnecessaryFullyQualifiedName in StringLookupFactory --- src/changes/changes.xml | 1 + .../org/apache/commons/text/lookup/StringLookupFactory.java | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 03df27d2..27bdd1f4 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -47,6 +47,7 @@ The <action> type attribute can be add,update,fix,remove. <body> <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> <!-- ADD --> <action type="add" dev="ggregory" due-to="Gary Gregory">Interface StringLookup now extends UnaryOperator<String>.</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 a323335b..448588eb 100644 --- a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java +++ b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java @@ -691,7 +691,7 @@ public final class StringLookupFactory { * @since 1.5 */ public StringLookup base64DecoderStringLookup() { - return StringLookupFactory.INSTANCE_BASE64_DECODER; + return INSTANCE_BASE64_DECODER; } /** @@ -718,7 +718,7 @@ public final class StringLookupFactory { * @since 1.6 */ public StringLookup base64EncoderStringLookup() { - return StringLookupFactory.INSTANCE_BASE64_ENCODER; + return INSTANCE_BASE64_ENCODER; } /** @@ -747,7 +747,7 @@ public final class StringLookupFactory { */ @Deprecated public StringLookup base64StringLookup() { - return StringLookupFactory.INSTANCE_BASE64_DECODER; + return INSTANCE_BASE64_DECODER; } /** @@ -889,7 +889,7 @@ public final class StringLookupFactory { * @return The EnvironmentVariableStringLookup singleton instance. */ public StringLookup environmentVariableStringLookup() { - return StringLookupFactory.INSTANCE_ENVIRONMENT_VARIABLES; + return INSTANCE_ENVIRONMENT_VARIABLES; } /** @@ -1185,7 +1185,7 @@ public final class StringLookupFactory { * @return The NullStringLookup singleton instance. */ public StringLookup nullStringLookup() { - return StringLookupFactory.INSTANCE_NULL; + return INSTANCE_NULL; } /** @@ -1426,7 +1426,7 @@ public final class StringLookupFactory { * @return The SystemPropertyStringLookup singleton instance. */ public StringLookup systemPropertyStringLookup() { - return StringLookupFactory.INSTANCE_SYSTEM_PROPERTIES; + return INSTANCE_SYSTEM_PROPERTIES; } /**