Skip to content

Commit

Permalink
Make it compile on Java 8. Use Java 24 in dev modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrandelshofer committed Oct 20, 2024
1 parent 97aedbe commit 6f04aa6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ 23 ]
java: [ 24-ea ]
arch: [ x64 ]
dist: [ zulu ]
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion fastdoubleparser-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<packaging>jar</packaging>
<name>fastdoubleparser-dev</name>
<properties>
<javaVersion>23</javaVersion>
<javaVersion>24</javaVersion>
<maven.install.skip>true</maven.install.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.deploy.skip>true</maven.deploy.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private static String expandDigits(String digits) {
if (digits.length() == 10) return digits;
if (digits.length() != 1)
throw new IllegalArgumentException("digits must have length 1 or 10, digits=\"" + digits + "\"");
var buf = new StringBuilder(10);
StringBuilder buf = new StringBuilder(10);
char zeroChar = digits.charAt(0);
for (int i = 0; i < 10; i++) {
buf.append((char) (zeroChar + i));
Expand Down
2 changes: 1 addition & 1 deletion fastdoubleparserdemo-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<artifactId>fastdoubleparserdemo-dev</artifactId>
<packaging>jar</packaging>
<properties>
<javaVersion>23</javaVersion>
<javaVersion>24</javaVersion>
<maven.install.skip>true</maven.install.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.deploy.skip>true</maven.deploy.skip>
Expand Down

This file was deleted.

0 comments on commit 6f04aa6

Please sign in to comment.