Skip to content

Conversation

nstdio
Copy link

@nstdio nstdio commented Sep 12, 2025

This commit applies several refinements to DefaultExchangeFunction:

  • Make enableLoggingRequestDetails final.
  • Optimize enableLoggingRequestDetails field initialization.

This commit applies several refinements to DefaultExchangeFunction:

- Make `enableLoggingRequestDetails` final.
- Optimize `enableLoggingRequestDetails` field initialization.

Signed-off-by: Edgar Asatryan <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 12, 2025
});
this.enableLoggingRequestDetails = strategies.messageWriters().stream()
.anyMatch(writer -> writer instanceof LoggingCodecSupport loggingCodecSupport
&& loggingCodecSupport.isEnableLoggingRequestDetails());
Copy link

@ronodhirSoumik ronodhirSoumik Sep 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional refactoration

this.enableLoggingRequestDetails =
    strategies.messageWriters().stream()
        .anyMatch(writer -> 
            ((writer instanceof LoggingCodecSupport loggingCodecSupport) &&
                 loggingCodecSupport.isEnableLoggingRequestDetails()));

@nstdio nstdio closed this Sep 25, 2025
@nstdio nstdio deleted the refine-defaultexchangefunction branch September 25, 2025 20:28
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants