We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c1be4 commit 2828ac7Copy full SHA for 2828ac7
opengrok-indexer/src/main/java/org/opengrok/indexer/util/RuntimeUtil.java
@@ -33,6 +33,10 @@ private RuntimeUtil() {
33
static final int JAVA_VERSION_MIN = 11;
34
static final int JAVA_VERSION_MAX = 21;
35
36
+ /**
37
+ * @throws RuntimeException if the Java runtime version is outside
38
+ * {@link #JAVA_VERSION_MIN} and {@link #JAVA_VERSION_MAX}.
39
+ */
40
public static void checkJavaVersion() throws RuntimeException {
41
Runtime.Version javaVersion = Runtime.version();
42
int majorVersion = javaVersion.version().get(0);
0 commit comments