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-codec.git
The following commit(s) were added to refs/heads/master by this push:
new a2599e1d Remove redundant null checks
a2599e1d is described below
commit a2599e1d624b9b8844dc4a3399f7fb846bde3a50
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Mar 16 09:25:37 2023 -0400
Remove redundant null checks
---
src/main/java/org/apache/commons/codec/digest/Blake3.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/codec/digest/Blake3.java
b/src/main/java/org/apache/commons/codec/digest/Blake3.java
index 700875dc..3513216a 100644
--- a/src/main/java/org/apache/commons/codec/digest/Blake3.java
+++ b/src/main/java/org/apache/commons/codec/digest/Blake3.java
@@ -118,7 +118,6 @@ public final class Blake3 {
* @throws NullPointerException if in is null
*/
public void update(final byte[] in) {
- Objects.requireNonNull(in);
update(in, 0, in.length);
}
@@ -145,7 +144,6 @@ public final class Blake3 {
* @throws NullPointerException if out is null
*/
public void doFinalize(final byte[] out) {
- Objects.requireNonNull(out);
doFinalize(out, 0, out.length);
}