--- a/src/java.base/share/classes/java/util/SplittableRandom.java Thu Jun 27 18:30:27 2019 -0300
+++ b/src/java.base/share/classes/java/util/SplittableRandom.java Fri Jun 28 09:16:31 2019 -0300
@@ -285,7 +285,10 @@
return mix64(nextSeed());
}
- static final BigInteger thePeriod = BigInteger.ONE.shiftLeft(64); // Period is 2**64
- public BigInteger period() { return thePeriod; }
+ static final BigInteger PERIOD = BigInteger.ONE.shiftLeft(64); // Period is 2**64
+
+ public BigInteger period() {
+ return PERIOD;
+ }
}
--- a/src/java.base/share/classes/java/util/random/AbstractSpliteratorRNG.java Thu Jun 27 18:30:27 2019 -0300
+++ b/src/java.base/share/classes/java/util/random/AbstractSpliteratorRNG.java Fri Jun 28 09:16:31 2019 -0300
@@ -46,7 +46,7 @@
* classes {@link AbstractSplittableRNG}, {@link AbstractSharedRNG},
* and {@link AbstractArbitrarilyJumpableRNG}.
*
- * @since 14
+ * @since 14
*/
abstract class AbstractSpliteratorRNG implements RandomNumberGenerator {