Skip to content

Commit

Permalink
Adopt JDK 23 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaSuenag authored Sep 28, 2024
1 parent f1811d9 commit 8f4d700
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 22
java-version: 23
cache: maven

# Test not only testcases but also packaging with jlink
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 22
java-version: 23
cache: maven

# Initializes the CodeQL tools for scanning.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 22
java-version: 23
cache: 'maven'

- name: 'Run Maven'
Expand All @@ -45,7 +45,7 @@ jobs:
name: Build for Linux AArch64
run: |
rm -fR target/perfreader-*/
docker run -i --rm -v .:/workspace:Z arm64v8/maven:3.9-eclipse-temurin-22 bash -c 'cd /workspace && mvn -B -DskipTests package'
docker run -i --rm -v .:/workspace:Z arm64v8/maven:3.9-eclipse-temurin-23 bash -c 'cd /workspace && mvn -B -DskipTests package'
- name: 'Upload Release Asset'
uses: AButler/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Analyze class files from ConstantPool.

## Requirements

* JDK 22 or later
* JDK 23 or later
* Maven 3.6.3 or later

## Build
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<imageName>${project.artifactId}-${project.version}</imageName>
<buildYear>${maven.build.timestamp}</buildYear>
<maven.build.timestamp.format>yyyy</maven.build.timestamp.format>
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<maven.compiler.source>23</maven.compiler.source>
<maven.compiler.target>23</maven.compiler.target>
</properties>

<dependencies>
Expand Down
9 changes: 5 additions & 4 deletions src/main/java/com/yasuenag/cfa/ClassInfoDumper.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.yasuenag.cfa;

/*
* Copyright (C) 2015, 2023, Yasumasa Suenaga
* Copyright (C) 2015, 2024, Yasumasa Suenaga
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -107,7 +107,8 @@ public class ClassInfoDumper implements Dumper{
Map.entry(63, "Java 19"),
Map.entry(64, "Java 20"),
Map.entry(65, "Java 21"),
Map.entry(66, "Java 22")
Map.entry(66, "Java 22"),
Map.entry(67, "Java 23")
);

/**
Expand Down Expand Up @@ -223,15 +224,15 @@ public void printClassInfo(boolean isShort){
*/
public void printFieldRefInfo(){
System.out.println("Field References:");
fieldSet.forEach(f -> System.out.println(STR." \{f.type().stringValue()} \{getClassNameInJava(f.owner())}.\{f.name().stringValue()}"));
fieldSet.forEach(f -> System.out.printf(" %s %s.%s\n", f.type().stringValue(), getClassNameInJava(f.owner()), f.name().stringValue()));
}

/**
* Print method information.
*/
public void printMethodRefInfo(){
System.out.println("Method References:");
methodSet.forEach(m -> System.out.println(STR." \{getClassNameInJava(m.owner())}.\{m.name().stringValue()}\{m.type().stringValue()}"));
methodSet.forEach(m -> System.out.printf(" %s.%s%s\n", getClassNameInJava(m.owner()), m.name().stringValue(), m.type().stringValue()));
}

/**
Expand Down

0 comments on commit 8f4d700

Please sign in to comment.