mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Fix Java 24 support
This commit is contained in:
parent
206400011a
commit
6b8999d151
2 changed files with 3 additions and 3 deletions
2
pom.xml
2
pom.xml
|
@ -369,7 +369,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
<version>5.14.1</version>
|
<version>5.16.0</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -162,8 +162,8 @@ public class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||||
if (javaVersion > 67.0) {
|
if (javaVersion > 68.0) {
|
||||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 23 is supported.");
|
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 24 is supported.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue