Skip to content

Commit 895706f

Browse files
committed
Use Java 17 to test and release.
1 parent 5046b9b commit 895706f

File tree

19 files changed

+30
-10
lines changed

19 files changed

+30
-10
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v5
24-
- name: Set up JDK 11
24+
- name: Set up JDK 17
2525
uses: actions/setup-java@v5
2626
with:
2727
distribution: temurin
28-
java-version: 11
28+
java-version: 17
2929
- name: Set up Gradle
3030
uses: gradle/actions/setup-gradle@v5
3131
- name: ⚙️ Run build

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v5
16-
- name: Set up JDK 11
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v5
1818
with:
1919
distribution: temurin
20-
java-version: 11
20+
java-version: 17
2121
- name: Set up Gradle
2222
uses: gradle/actions/setup-gradle@v5
2323
- name: 🚀 Run release

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ subprojects {
4747
}
4848

4949
compileTestJava {
50-
sourceCompatibility = JavaVersion.VERSION_11
51-
targetCompatibility = JavaVersion.VERSION_11
52-
options.release = 11
50+
sourceCompatibility = JavaVersion.VERSION_17
51+
targetCompatibility = JavaVersion.VERSION_17
52+
options.release = 17
5353
}
5454

5555
moduleConfig {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/XmlBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public static boolean canHandle(Object xml) {
6363
}
6464

6565
private final XPathParser parser;
66+
@SuppressWarnings("serial")
6667
private final List<Effect> effects;
6768

6869
public XmlBuilder() {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/effects/PutEffect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class PutEffect implements Effect, Serializable {
3434

3535
private static final ViewVisitor<Node, Void> eagerVisitor = new EagerVisitor();
3636

37+
@SuppressWarnings("serial")
3738
private final Expr expr;
3839

3940
public PutEffect(Expr expr) {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/effects/PutValueEffect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class PutValueEffect implements Effect, Serializable {
3131

3232
private static final long serialVersionUID = 1L;
3333

34+
@SuppressWarnings("serial")
3435
private final Expr expr;
3536
private final String value;
3637

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/effects/RemoveEffect.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class RemoveEffect implements Effect, Serializable {
3131

3232
private static final long serialVersionUID = 1L;
3333

34+
@SuppressWarnings("serial")
3435
private final Expr expr;
3536

3637
public RemoveEffect(Expr expr) {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/expr/AbstractOperationExpr.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ abstract class AbstractOperationExpr implements Expr, Serializable {
2727

2828
private static final long serialVersionUID = 1L;
2929

30+
@SuppressWarnings("serial")
3031
private final Expr leftExpr;
32+
@SuppressWarnings("serial")
3133
private final Expr rightExpr;
3234

3335
protected AbstractOperationExpr(Expr leftExpr, Expr rightExpr) {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/expr/AxisStepExpr.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public class AxisStepExpr implements StepExpr, Serializable {
3333

3434
private static final long serialVersionUID = 1L;
3535

36+
@SuppressWarnings("serial")
3637
private final AxisResolver axisResolver;
38+
@SuppressWarnings("serial")
3739
private final Collection<Expr> predicates;
3840

3941
public AxisStepExpr(AxisResolver axisResolver, Collection<Expr> predicates) {

xpath-to-xml-core/src/main/java/com/github/simy4/xpath/expr/PathExpr.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class PathExpr implements Expr, Serializable {
2929

3030
private static final long serialVersionUID = 1L;
3131

32+
@SuppressWarnings("serial")
3233
private final List<StepExpr> pathExpr;
3334

3435
public PathExpr(List<StepExpr> pathExpr) {

0 commit comments

Comments
 (0)