Skip to content

Conversation

@diegolovison
Copy link
Contributor

Remove reduntant LOG.isTraceEnabled() from logDirtyProperties


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


Remove reduntant LOG.isTraceEnabled() from logDirtyProperties
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented May 26, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [42069fa]

› This message was automatically generated.

@diegolovison
Copy link
Contributor Author

Do you need a Jira ticket for this small change?

@gavinking
Copy link
Member

The call is not redundant. It saves all that string concatenation.

@gavinking gavinking closed this May 26, 2025
@diegolovison
Copy link
Contributor Author

Hi @gavinking, thanks for your feedback

The if is: if ( dirtyProperties != null && dirtyProperties.length > 0 && LOG.isTraceEnabled() ) { then we have the redundant LOG.isTraceEnabled() inside the method.

@gavinking
Copy link
Member

@diegolovison My apologies; right you are!

@gavinking gavinking reopened this May 26, 2025
@gavinking gavinking merged commit 8d5d589 into hibernate:main May 26, 2025
22 of 24 checks passed
@gavinking
Copy link
Member

@diegolovison Thanks man! Sorry about that!

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