Skip to content

Commit 854a888

Browse files
committed
Update to JDK 20
1 parent 5ad9f9b commit 854a888

File tree

5,016 files changed

+406473
-237731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,016 files changed

+406473
-237731
lines changed

.github/workflows/publish-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
ref: 'develop'
1818
- uses: actions/setup-java@v3
1919
with:
20-
distribution: 'temurin'
21-
java-version: 19
20+
distribution: 'zulu'
21+
java-version: 20
2222
cache: 'maven'
2323
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
2424
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

.github/workflows/publish-maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
ref: 'develop'
1818
- uses: actions/setup-java@v3
1919
with:
20-
distribution: 'temurin'
21-
java-version: 19
20+
distribution: 'zulu'
21+
java-version: 20
2222
cache: 'maven'
2323
server-id: ossrh
2424
server-username: MAVEN_USERNAME

.github/workflows/publish-minimal-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
ref: 'minimal'
1818
- uses: actions/setup-java@v3
1919
with:
20-
distribution: 'temurin'
21-
java-version: 19
20+
distribution: 'zulu'
21+
java-version: 20
2222
cache: 'maven'
2323
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
2424
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

.github/workflows/publish-minimal-maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
ref: 'minimal'
1818
- uses: actions/setup-java@v3
1919
with:
20-
distribution: 'temurin'
21-
java-version: 19
20+
distribution: 'zulu'
21+
java-version: 20
2222
cache: 'maven'
2323
server-id: ossrh
2424
server-username: MAVEN_USERNAME

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Based on libayatana-appindicator3-1 (0.5.92-1)
1010
Based on libappindicator3-1 (12.10.1+20.10.20200706.1-0ubuntu1)
1111

1212
# Requires
13-
Java 19 (preview)
13+
Java 20 (preview)
1414
- due to the use of the new Foreign Function & Memory API
1515

1616
# Usage

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
</scm>
3737

3838
<properties>
39-
<maven.compiler.source>19</maven.compiler.source>
40-
<maven.compiler.target>19</maven.compiler.target>
39+
<maven.compiler.source>20</maven.compiler.source>
40+
<maven.compiler.target>20</maven.compiler.target>
4141
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4242

4343
<junit.version>5.9.2</junit.version>
@@ -132,8 +132,8 @@
132132
<artifactId>maven-compiler-plugin</artifactId>
133133
<version>3.11.0</version>
134134
<configuration>
135-
<source>19</source>
136-
<target>19</target>
135+
<source>20</source>
136+
<target>20</target>
137137
<compilerArgs>
138138
--enable-preview
139139
</compilerArgs>

src/main/java/org/purejava/linux/AppIndicator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
import java.nio.ByteOrder;
88
import java.lang.foreign.*;
99
import static java.lang.foreign.ValueLayout.*;
10-
public class AppIndicator extends _AppIndicator {
10+
/**
11+
* {@snippet :
12+
* typedef struct _AppIndicator AppIndicator;
13+
* }
14+
*/
15+
public final class AppIndicator extends _AppIndicator {
1116

17+
// Suppresses default constructor, ensuring non-instantiability.
18+
private AppIndicator() {}
1219
}
1320

1421

src/main/java/org/purejava/linux/AppIndicatorClass.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
import java.nio.ByteOrder;
88
import java.lang.foreign.*;
99
import static java.lang.foreign.ValueLayout.*;
10-
public class AppIndicatorClass extends _AppIndicatorClass {
10+
/**
11+
* {@snippet :
12+
* typedef struct _AppIndicatorClass AppIndicatorClass;
13+
* }
14+
*/
15+
public final class AppIndicatorClass extends _AppIndicatorClass {
1116

17+
// Suppresses default constructor, ensuring non-instantiability.
18+
private AppIndicatorClass() {}
1219
}
1320

1421

src/main/java/org/purejava/linux/AppIndicatorPrivate.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
import java.nio.ByteOrder;
88
import java.lang.foreign.*;
99
import static java.lang.foreign.ValueLayout.*;
10-
public class AppIndicatorPrivate {
10+
/**
11+
* {@snippet :
12+
* typedef struct _AppIndicatorPrivate AppIndicatorPrivate;
13+
* }
14+
*/
15+
public final class AppIndicatorPrivate {
1116

17+
// Suppresses default constructor, ensuring non-instantiability.
18+
private AppIndicatorPrivate() {}
1219
}
1320

1421

src/main/java/org/purejava/linux/AtkAction.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
import java.nio.ByteOrder;
88
import java.lang.foreign.*;
99
import static java.lang.foreign.ValueLayout.*;
10-
public class AtkAction {
10+
/**
11+
* {@snippet :
12+
* typedef struct _AtkAction AtkAction;
13+
* }
14+
*/
15+
public final class AtkAction {
1116

17+
// Suppresses default constructor, ensuring non-instantiability.
18+
private AtkAction() {}
1219
}
1320

1421

0 commit comments

Comments
 (0)