cxzl25 opened a new pull request, #2441:
URL: https://github.com/apache/auron/pull/2441
# Which issue does this PR close?
Closes #2440
# Rationale for this change
`./dev/reformat` produced different formatting results depending on the JDK
used to run it. `pom.xml` selected `scalafmtVersion` based on the active JDK
profile: `3.0.0` for `jdk-8`/`jdk-11`, and `3.9.9` for `jdk-17`/`jdk-21`.
However, `scalafmt.conf` declares `version = 3.9.9`, so only the JDK 17/21
profiles actually matched the intended
formatting rules.
As a result, running the formatter under JDK 8/11 vs JDK 17/21 produced
different indentation for multi-line string interpolations (e.g.
`.getOrElse(...)` continuation lines), causing spurious diffs in `git status`
depending on which JDK happened to be active locally.
# What changes are included in this PR?
# Are there any user-facing changes?
No
# How was this patch tested?
GHA
# Was this patch authored or co-authored using generative AI tooling?
- [ ] Yes
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]