Skip to content

Commit 02945ca

Browse files
committed
feat: update to final Java24, remove preview features
1 parent 28ec9c2 commit 02945ca

File tree

5 files changed

+8
-20
lines changed

5 files changed

+8
-20
lines changed

.github/workflows/native.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: graalvm/setup-graalvm@v1
1717
with:
18-
java-version: '23'
18+
java-version: '24'
1919
distribution: 'graalvm'
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
2121
native-image-job-reports: 'true'

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

create-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2024 Nacho Brito
2+
# Copyright 2025 Nacho Brito
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ Copyright 2024 Nacho Brito
3+
~ Copyright 2025 Nacho Brito
44
~
55
~ Licensed under the Apache License, Version 2.0 (the "License");
66
~ you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@
2828

2929
<properties>
3030
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31-
<maven.compiler.release>23</maven.compiler.release>
31+
<maven.compiler.release>24</maven.compiler.release>
3232
<json-schema-ref-parser-jvm.version>0.8.7</json-schema-ref-parser-jvm.version>
3333
<jcommander.version>2.0</jcommander.version>
3434
<native.maven.plugin.version>0.10.4</native.maven.plugin.version>
@@ -143,19 +143,11 @@
143143
<groupId>org.apache.maven.plugins</groupId>
144144
<artifactId>maven-compiler-plugin</artifactId>
145145
<configuration>
146-
<source>23</source>
147-
<target>23</target>
148-
<enablePreview>true</enablePreview>
146+
<source>24</source>
147+
<target>24</target>
149148
</configuration>
150149
</plugin>
151150

152-
<plugin>
153-
<groupId>org.apache.maven.plugins</groupId>
154-
<artifactId>maven-surefire-plugin</artifactId>
155-
<configuration>
156-
<argLine>--enable-preview</argLine>
157-
</configuration>
158-
</plugin>
159151
<plugin>
160152
<!-- Build an executable JAR -->
161153
<groupId>org.apache.maven.plugins</groupId>
@@ -208,7 +200,6 @@
208200
<executable>java</executable>
209201
<workingDirectory>${project.build.directory}</workingDirectory>
210202
<arguments>
211-
<argument>--enable-preview</argument>
212203
<argument>-classpath</argument>
213204
<classpath/>
214205
<argument>${mainClass}</argument>
@@ -275,9 +266,6 @@
275266
<agent>
276267
<enabled>true</enabled>
277268
</agent>
278-
<buildArgs>
279-
<buildArg>--enable-preview</buildArg>
280-
</buildArgs>
281269
</configuration>
282270
</plugin>
283271
</plugins>

src/main/java/es/nachobrito/jsonschema/compiler/domain/generator/EqualsGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void generatePart() {
4747
cob
4848
// if (o == null) return false;
4949
.aload(1)
50-
.if_null(returnFalse)
50+
.ifnull(returnFalse)
5151
// if (!(o instanceof *ThisClass*)) return false;
5252
.aload(1)
5353
.instanceOf(params.classDesc())

0 commit comments

Comments
 (0)