File: 02-java17-compatibility.patch

package info (click to toggle)
libcommons-lang-java 2.6-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,124 kB
  • sloc: java: 52,623; xml: 3,448; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (2)
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 &lt;= 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"