diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 3c82ad9f..55193963 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -19,11 +19,11 @@ jobs:
path: ~/.m2/repository
key: maven-cache-${{ hashFiles('**/pom.xml') }}
- - name: Set up JDK 17
+ - name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: corretto
- java-version: 17
+ java-version: 21
- name: Build with Maven
run: mvn -e --no-transfer-progress install
diff --git a/config/checkstyle.properties b/config/checkstyle.properties
index b71118aa..818a4271 100644
--- a/config/checkstyle.properties
+++ b/config/checkstyle.properties
@@ -4,3 +4,4 @@ checkstyle.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/m
checkstyle.regexp.header.file=https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java-regexp.header
checkstyle.importcontrol.file=config/import-control.xml
checkstyle.importcontroltest.file=config/import-control-test.xml
+checkstyle.java.version=21
diff --git a/pom.xml b/pom.xml
index bd96bc25..c50aaf5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,10 +33,10 @@
UTF-8
- 10.4
+ 13.3.0
3.2.0
- 17
- 17
+ 21
+ 21
5.9.1
@@ -116,7 +116,7 @@
false
true
- https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_checks.xml
+ https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle-checks.xml
config/checkstyle.properties
true
diff --git a/src/main/java/com/github/checkstyle/generatepatchfile/GeneratePatchFile.java b/src/main/java/com/github/checkstyle/generatepatchfile/GeneratePatchFile.java
index 2fb87987..3c3ae0cd 100644
--- a/src/main/java/com/github/checkstyle/generatepatchfile/GeneratePatchFile.java
+++ b/src/main/java/com/github/checkstyle/generatepatchfile/GeneratePatchFile.java
@@ -142,8 +142,8 @@ public GeneratePatchFile(String repoPath, String testerPath,
.readEnvironment().findGitDir().build();
git = new Git(repository);
}
- catch (IOException ex) {
- ex.printStackTrace();
+ catch (IOException exception) {
+ exception.printStackTrace();
}
diffReportDirName = new File(".").getAbsoluteFile().getParent() + "/DiffReport";
}
@@ -406,8 +406,8 @@ private void generateSummaryIndexHtml() {
out.write("\n