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 04deae6a2c069d3bd4c7b5e90027ac221ca1dba5 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 19 13:40:33 2025 -0400 Fix PMD UnnecessaryFullyQualifiedName in PropertiesStringLookup --- src/changes/changes.xml | 5 +++-- .../java/org/apache/commons/text/lookup/PropertiesStringLookup.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5d28354f..3aed2034 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -47,8 +47,9 @@ 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> - <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix all PMD UnnecessaryFullyQualifiedName in DefaultStringLookupsHolder.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in StringLookupFactory.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in DefaultStringLookupsHolder.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in PropertiesStringLookup.</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/PropertiesStringLookup.java b/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java index 7420c407..d369ffcf 100644 --- a/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java +++ b/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java @@ -53,7 +53,7 @@ final class PropertiesStringLookup extends AbstractPathFencedLookup { * Creates a lookup key for a given file and key. */ static String toPropertyKey(final String file, final String key) { - return AbstractStringLookup.toLookupKey(file, SEPARATOR, key); + return toLookupKey(file, SEPARATOR, key); } /**