changeset 16735:734a8b392154

8174909: Doc error in SecureRandom Reviewed-by: mullan
author weijun
date Wed, 15 Feb 2017 09:08:25 +0800
parents 1c101c68279d
children 8fd1fcfc2f09
files src/java.base/share/classes/java/security/DrbgParameters.java src/java.base/share/classes/java/security/SecureRandom.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/security/DrbgParameters.java	Tue Feb 14 14:29:58 2017 -0800
+++ b/src/java.base/share/classes/java/security/DrbgParameters.java	Wed Feb 15 09:08:25 2017 +0800
@@ -53,8 +53,8 @@
  * for CTR_DRBG. Please note that it is not the algorithm used in
  * {@link SecureRandom#getInstance}, which we will call a
  * <em>SecureRandom algorithm</em> below),
- * <li> optionally features, including prediction resistance
- * and reseeding supports.
+ * <li> optional features, including prediction resistance
+ * and reseeding supports,
  * <li> highest security strength.
  * </ul>
  * <p>
--- a/src/java.base/share/classes/java/security/SecureRandom.java	Tue Feb 14 14:29:58 2017 -0800
+++ b/src/java.base/share/classes/java/security/SecureRandom.java	Wed Feb 15 09:08:25 2017 +0800
@@ -64,8 +64,8 @@
  * <blockquote><pre>
  * SecureRandom r1 = new SecureRandom();
  * SecureRandom r2 = SecureRandom.getInstance("NativePRNG");
- * SecureRandom r3 = SecureRandom("DRBG",
- *         DrbgParameters.Instantiation(128, RESEED_ONLY, null));</pre>
+ * SecureRandom r3 = SecureRandom.getInstance("DRBG",
+ *         DrbgParameters.instantiation(128, RESEED_ONLY, null));</pre>
  * </blockquote>
  *
  * <p> The third statement above returns a {@code SecureRandom} object of the