Skip to content

Fix: apply Java formatting to RetryGatewayFilterFactory - #4329

Open
JoeCqupt wants to merge 2 commits into
spring-cloud:mainfrom
JoeCqupt:fix/fix-checkstyle
Open

JoeCqupt wants to merge 2 commits into
spring-cloud:mainfrom
JoeCqupt:fix/fix-checkstyle

Conversation

@JoeCqupt

@JoeCqupt JoeCqupt commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Running mvn install locally caused Spring Java Format to reformat comments in RetryGatewayFilterFactory, leaving unrelated changes in the working tree.

The plugin configuration inherited from spring-cloud-build runs apply before validate. As a result, formatting violations are silently corrected before validation, so CI can pass even when the committed source is not properly formatted.

Changes

- Disable the inherited apply and validate execution.
- Bind a validation-only execution to the Maven validate phase, preserving the existing disable.checks setting.
- Align the existing RetryGatewayFilterFactory comments with the required formatting.

Both local and GitHub Actions builds will now report formatting violations instead of silently modifying source files. Developers can still run spring-javaformat:apply explicitly to fix them.

Apply Java formatting to RetryGatewayFilterFactory.

Disable the inherited automatic formatting execution and validate source
formatting instead, so Maven builds expose violations in GitHub Actions
rather than silently fixing them. Align RetryGatewayFilterFactory comments
with the required formatting.

Signed-off-by: JoeCqupt <joe469391363@gmail.com>
@JoeCqupt JoeCqupt changed the title Validate Java formatting during Maven builds and GitHub Actions Fix: validate Java formatting during Maven builds and GitHub Actions Oct 15, 2026
Comment thread pom.xml Outdated
Keep the shared spring-cloud-build configuration unchanged while maintainers investigate the formatting validation behavior upstream.

Signed-off-by: JoeCqupt <joe469391363@gmail.com>
@JoeCqupt JoeCqupt changed the title Fix: validate Java formatting during Maven builds and GitHub Actions Fix: apply Java formatting to RetryGatewayFilterFactory Oct 16, 2026
@JoeCqupt
JoeCqupt requested a review from spencergibb October 16, 2026 05:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants