Skip to content

style: apply the current Java formatter - #794

Merged
zhongkechen merged 3 commits into
mainfrom
fix/java-formatter-policy-20261014
Oct 14, 2026
Merged

zhongkechen merged 3 commits into
mainfrom
fix/java-formatter-policy-20261014

Conversation

@zhongkechen

@zhongkechen zhongkechen commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Spotless 3.10.4 defaults to Palantir Java Format 2.102.0, which changes switch-expression layout and makes 14 existing Java files fail the formatting check on main. Apply the formatter's layout to those files so the normal check passes.

The Maven configuration matches main. Formatting rules follow the fixed formatter version supplied by the selected Spotless release.

Validation: the full-reactor mvn -o -B -ntp spotless:apply spotless:check passes on Java 17, and git diff --check passes. All 14 Java changes preserve lexical tokens, string literals, and comments. No runtime tests were rerun for this formatting-only change.

Keep Spotless 3.10.4 while explicitly retaining the established Palantir 2.98.0 formatting rules. The plugin default changed to 2.102.0, which otherwise rewrites existing switch-expression layouts across multiple modules.
@zhongkechen
zhongkechen requested a review from a team October 14, 2026 17:16
@zhongkechen
zhongkechen deployed to ai-pr-review-runtime October 14, 2026 17:16 — with GitHub Actions Active
@zhongkechen
zhongkechen deployed to ai-pr-review-runtime October 14, 2026 17:17 — with GitHub Actions Active
@github-actions

This comment has been minimized.

Comment thread pom.xml Outdated
@zhongkechen zhongkechen changed the title ci: pin the Java formatter version style: apply the current Java formatter Oct 14, 2026
@zhongkechen
zhongkechen deployed to ai-pr-review-runtime October 14, 2026 18:07 — with GitHub Actions Active
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@zhongkechen zhongkechen changed the title ci: pin the Java formatter version ci: pin the Java formatter with Dependabot updates Oct 14, 2026
@zhongkechen
zhongkechen deployed to ai-pr-review-runtime October 14, 2026 18:42 — with GitHub Actions Active
@github-actions

This comment has been minimized.

@zhongkechen zhongkechen changed the title ci: pin the Java formatter with Dependabot updates style: apply the current Java formatter Oct 14, 2026
@zhongkechen
zhongkechen deployed to ai-pr-review-runtime October 14, 2026 18:50 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

No actionable findings. All 14 changed files preserve tokens, literals, and comments; changes are formatting-only. Residual risk: build, formatter, and test checks were not executed during this read-only review.

Reviewed commit 816eb55b93fb0fe01e0e015d1f2995fe29b1d6ce. Workflow run

@zhongkechen
zhongkechen merged commit f49beb6 into main Oct 14, 2026
34 checks passed
@zhongkechen
zhongkechen deleted the fix/java-formatter-policy-20261014 branch October 14, 2026 19:29

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 816eb55b Deployed Oct 14, 2026 by zhongkechen via ai-pr-review / Codex review / Generate Codex review #2248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants