1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Fixes the compatibility with Java 17
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/main/java/org/apache/commons/lang/math/JVMRandom.java
+++ b/src/main/java/org/apache/commons/lang/math/JVMRandom.java
@@ -141,7 +141,7 @@
* @return the random long
* @throws IllegalArgumentException when <code>n <= 0</code>
*/
- public static long nextLong(long n) {
+ public long nextLong(long n) {
if (n <= 0) {
throw new IllegalArgumentException(
"Upper bound for nextInt must be positive"
|