Commit 5807c59
committed
ci: Run the pre-commit formatter on the project's JDK
The pre-commit workflow set up Python but no Java, so google-java-format
ran on the runner's default JDK 17 and could not parse this project's
Java 25 sources — every file using an unnamed `_` binding or a record
pattern failed to parse. Those constructs predate this branch; the job
only fails when a pull request happens to touch such a file.
Adds the same setup-java step pull_request.yaml already uses, keyed off
.java-version, and bumps extenda/pre-commit-hooks to v0.16.1.
Verified locally across the matrix: on JDK 17 the formatter fails with
either jar version (1.28.0 cannot parse `_`, 1.36.1 throws LinkageError);
on JDK 25 both pass. The JDK is the fix, the bump is housekeeping.1 parent 0ac5e48 commit 5807c59
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments