Add support for Java 24

This commit is contained in:
md_5 2025-03-14 20:52:06 +11:00
parent fd2bd5e436
commit f0c8dd3617
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.14.1</version>
<version>5.16.0</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -162,8 +162,8 @@ public class Main {
}
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
if (javaVersion > 67.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 23 is supported.");
if (javaVersion > 68.0) {
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 24 is supported.");
return;
}