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()));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants