Skip to content

Commit 1e49314

Browse files
committed
Fix PMD UnnecessaryFullyQualifiedName in AlphabetConverter
1 parent b488bfc commit 1e49314

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ The <action> type attribute can be add,update,fix,remove.
5353
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in JavaPlatformStringLookup.</action>
5454
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in StringSubstitutor.</action>
5555
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in StrSubstitutor.</action>
56+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName in AlphabetConverter.</action>
5657
<!-- ADD -->
5758
<action type="add" dev="ggregory" due-to="Gary Gregory">Interface StringLookup now extends UnaryOperator&lt;String&gt;.</action>
5859
<action type="add" dev="ggregory" due-to="Gary Gregory">Interface TextRandomProvider extends IntUnaryOperator.</action>

src/main/java/org/apache/commons/text/AlphabetConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public static AlphabetConverter createConverterFromChars(
242242
final Character[] original,
243243
final Character[] encoding,
244244
final Character[] doNotEncode) {
245-
return AlphabetConverter.createConverter(
245+
return createConverter(
246246
convertCharsToIntegers(original),
247247
convertCharsToIntegers(encoding),
248248
convertCharsToIntegers(doNotEncode));

0 commit comments

Comments
 (0)