Skip to content

Commit 2828ac7

Browse files
committed
add javadoc
1 parent f9c1be4 commit 2828ac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/util/RuntimeUtil.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ private RuntimeUtil() {
3333
static final int JAVA_VERSION_MIN = 11;
3434
static final int JAVA_VERSION_MAX = 21;
3535

36+
/**
37+
* @throws RuntimeException if the Java runtime version is outside
38+
* {@link #JAVA_VERSION_MIN} and {@link #JAVA_VERSION_MAX}.
39+
*/
3640
public static void checkJavaVersion() throws RuntimeException {
3741
Runtime.Version javaVersion = Runtime.version();
3842
int majorVersion = javaVersion.version().get(0);

0 commit comments

Comments
 (0)