java 17 -> java 21

This commit is contained in:
Robert Muir 2024-02-09 15:13:37 -05:00
parent 4ef0c044d7
commit d75b869d21
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ public class WrapperDownloader {
public static void checkVersion() {
int major = Runtime.getRuntime().version().feature();
if (major < 17 || major > 21) {
throw new IllegalStateException("java version must be between 17 and 21, your version: " + major);
if (major != 21) {
throw new IllegalStateException("java version must be 21, your version: " + major);
}
}