Skip to content

Commit 5097ba6

Browse files
committed
Fix PMD multiple UnnecessaryFullyQualifiedName in
org.apache.commons.codec.digest.Blake3
1 parent 3a7cdf5 commit 5097ba6

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
@@ -60,6 +60,7 @@ The <action> type attribute can be add,update,fix,remove.
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>
6161
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD multiple UnnecessaryFullyQualifiedName in org.apache.commons.codec.binary.StringUtils.</action>
6262
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnusedFormalParameter in private constructor in org.apache.commons.codec.binary.Base16.</action>
63+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD multiple UnnecessaryFullyQualifiedName in org.apache.commons.codec.digest.Blake3.</action>
6364
<!-- ADD -->
6465
<action type="add" dev="ggregory" due-to="Gary Gregory">Add HmacUtils.hmac(Path).</action>
6566
<action type="add" dev="ggregory" due-to="Gary Gregory">Add HmacUtils.hmacHex(Path).</action>

src/main/java/org/apache/commons/codec/digest/Blake3.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ private static void g(final int[] state, final int a, final int b, final int c,
343343
* @throws NullPointerException if data is null
344344
*/
345345
public static byte[] hash(final byte[] data) {
346-
return Blake3.initHash().update(data).doFinalize(OUT_LEN);
346+
return initHash().update(data).doFinalize(OUT_LEN);
347347
}
348348

349349
/**
@@ -399,7 +399,7 @@ public static Blake3 initKeyedHash(final byte[] key) {
399399
* @throws NullPointerException if key or data are null
400400
*/
401401
public static byte[] keyedHash(final byte[] key, final byte[] data) {
402-
return Blake3.initKeyedHash(key).update(data).doFinalize(OUT_LEN);
402+
return initKeyedHash(key).update(data).doFinalize(OUT_LEN);
403403
}
404404

405405
private static void packInt(final int value, final byte[] dst, final int off, final int len) {

0 commit comments

Comments
 (0)