You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/04 15:36:26 UTC

[commons-codec] branch master updated: Update Javadoc for Java 8

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 8e1652ab Update Javadoc for Java 8
8e1652ab is described below

commit 8e1652ab30c59cde68d2142ed72271f7e697cbaa
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 4 11:36:12 2023 -0400

    Update Javadoc for Java 8
---
 src/main/java/org/apache/commons/codec/digest/Blake3.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 7ec5b5b7..24956a65 100644
--- a/src/main/java/org/apache/commons/codec/digest/Blake3.java
+++ b/src/main/java/org/apache/commons/codec/digest/Blake3.java
@@ -39,7 +39,7 @@ import java.util.Objects;
  * Blake3 keyed hashes have the same performance as plain hashes; the key is used in initialization in place of a
  * standard initialization vector used for plain hashing.</p>
  * <pre>{@code
- *      SecureRandom random = new SecureRandom(); // or SecureRandom.getInstanceStrong() in Java 8+
+ *      SecureRandom random = SecureRandom.getInstanceStrong();
  *      byte[] key = new byte[32];
  *      random.nextBytes(key);
  *      Blake3 hasher = Blake3.initKeyedHash(key);