Skip to content

Fix excess trailing newlines in Java source files - #27

Closed
mercyblitz with Copilot wants to merge 2 commits into
dev-1.xfrom
copilot/remove-duplicated-line-separators-again
Closed

Fix excess trailing newlines in Java source files#27
mercyblitz with Copilot wants to merge 2 commits into
dev-1.xfrom
copilot/remove-duplicated-line-separators-again

Conversation

Copilot AI commented May 29, 2026

Copy link
Copy Markdown
Contributor

A previous cleanup operation inadvertently added multiple trailing newlines to the end of Java source files. This follow-up corrects the issue by ensuring all files end with the proper format: closing brace } followed by exactly one newline character.

Changes

  • Trailing newline normalization: Removed excess trailing newlines (2-4 newlines) from 4 Java files that had been affected
  • Files corrected:
    • microsphere-spring-cloud-gateway-commons/src/main/java/.../config/ConfigUtils.java
    • microsphere-spring-cloud-gateway-commons/src/main/java/.../config/WebEndpointConfig.java
    • microsphere-spring-cloud-gateway-server-webflux/src/main/java/.../util/GatewayUtils.java
    • microsphere-spring-cloud-gateway-server-webflux/src/test/java/.../filter/NoOpGatewayFilter.java

Example

Before (incorrect):

    private ConfigUtils() {
    }
}
[extra blank lines here]

After (correct):

    private ConfigUtils() {
    }
}
[single newline at EOF]

All files now follow the proper format with closing braces preserved and no extraneous trailing newlines. Code compilation verified successfully.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ Complexity Δ
...ointConfigurationPropertiesBindHandlerAdvisor.java 100.00% <ø> (ø) 3.00 <0.00> (ø)
...ebflux/autoconfigure/GatewayAutoConfiguration.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
...re/WebEndpointMappingGatewayAutoConfiguration.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
...text/WebEndpointApplicationContextInitializer.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
...HeartbeatEventRouteRefreshListenerInterceptor.java 100.00% <ø> (ø) 8.00 <0.00> (ø)
...pagatingRefreshRoutesEventApplicationListener.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
...rver/webflux/filter/DefaultGatewayFilterChain.java 100.00% <ø> (ø) 4.00 <0.00> (ø)
...webflux/filter/WebEndpointMappingGlobalFilter.java 99.04% <ø> (ø) 72.00 <0.00> (ø)
...er/webflux/handler/CachingFilteringWebHandler.java 100.00% <ø> (ø) 14.00 <0.00> (ø)
...WebHandlerBeanDefinitionRegistryPostProcessor.java 100.00% <ø> (ø) 4.00 <0.00> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI changed the title Clean up formatting: remove trailing whitespace and excessive blank lines Fix excess trailing newlines in Java source files May 29, 2026
Copilot AI requested a review from mercyblitz May 29, 2026 12:36
@mercyblitz mercyblitz closed this May 29, 2026
@mercyblitz
mercyblitz deleted the copilot/remove-duplicated-line-separators-again branch May 29, 2026 14:54
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