[build] Upgrade to Java 21 (#7547)

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
Co-authored-by: sciencewhiz <sciencewhiz@users.noreply.github.com>
This commit is contained in:
Jade
2025-07-26 06:45:40 +08:00
committed by GitHub
parent c78bd942bb
commit e93c8cdb29
20 changed files with 57 additions and 49 deletions

View File

@@ -435,7 +435,6 @@ public final class StructGenerator {
}
int size = 0;
boolean failed = false;
for (final E constant : enumVariants) {
final String name = constant.name();
@@ -452,6 +451,8 @@ public final class StructGenerator {
.filter(f -> !f.isEnumConstant() && !Modifier.isStatic(f.getModifiers()))
.toList();
boolean failed = false;
for (final Field field : enumFields) {
final Class<?> type = field.getType();
final String name = field.getName();