Skip to content

Commit b1b7b5a

Browse files
committed
Fix PMD multiple UnnecessaryFullyQualifiedName in
org.apache.commons.codec.binary.StringUtils
1 parent 66bbba9 commit b1b7b5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ The <action> type attribute can be add,update,fix,remove.
5858
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate unused constant org.apache.commons.codec.language.bm.Rule.ALL.</action>
5959
<action type="fix" dev="ggregory" issue="CODEC-331" due-to="IlikeCode, Gary Gregory">org.apache.commons.codec.language.bm.Rule.parsePhonemeExpr(String) adds duplicate empty phoneme when input ends with |.</action>
6060
<action type="fix" dev="ggregory" issue="CODEC-331" due-to="IlikeCode, Gary Gregory">org.apache.commons.codec.language.DaitchMokotoffSoundex.cleanup(String) does not remove special characters like punctuation.</action>
61+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD multiple UnnecessaryFullyQualifiedName in org.apache.commons.codec.binary.StringUtils.</action>
6162
<!-- ADD -->
6263
<action type="add" dev="ggregory" due-to="Gary Gregory">Add HmacUtils.hmac(Path).</action>
6364
<action type="add" dev="ggregory" due-to="Gary Gregory">Add HmacUtils.hmacHex(Path).</action>

src/main/java/org/apache/commons/codec/binary/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static byte[] getBytesUnchecked(final String string, final String charset
173173
try {
174174
return string.getBytes(charsetName);
175175
} catch (final UnsupportedEncodingException e) {
176-
throw StringUtils.newIllegalStateException(charsetName, e);
176+
throw newIllegalStateException(charsetName, e);
177177
}
178178
}
179179

@@ -313,7 +313,7 @@ public static String newString(final byte[] bytes, final String charsetName) {
313313
try {
314314
return new String(bytes, charsetName);
315315
} catch (final UnsupportedEncodingException e) {
316-
throw StringUtils.newIllegalStateException(charsetName, e);
316+
throw newIllegalStateException(charsetName, e);
317317
}
318318
}
319319

0 commit comments

Comments
 (0)