Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce SAT warnings #4555

Closed
wants to merge 1 commit into from
Closed

Conversation

holgerfriedrich
Copy link
Member

@holgerfriedrich holgerfriedrich commented Jan 11, 2025

Address PMD warnings.
Cleanup PMD suppressions, add local // NOPMD tags where readability is preferred over PMD rule.

For the remaining SimplifyBooleanReturn warnings, no code change should be done. The code looks cleaner if we keep it as it is.
I did not try to silence this warnings yet. The NOPMD tag is not well suited, as it needs to be added to the line of the if. Looks ugly.

Before:
grafik

After:
grafik

@holgerfriedrich holgerfriedrich force-pushed the pr-sat branch 5 times, most recently from 2878139 to fcceb57 Compare January 12, 2025 00:26
Signed-off-by: Holger Friedrich <[email protected]>
@holgerfriedrich holgerfriedrich marked this pull request as ready for review January 12, 2025 01:02
@holgerfriedrich holgerfriedrich requested a review from a team as a code owner January 12, 2025 01:02
return true;
}
return ConfigParser.valueAsOrElse(properties.get(CONFIG_REMOTE_ENABLED), Boolean.class, true);
// if we can't determine a set property, we use true (default is remote enabled)
Copy link
Member

Choose a reason for hiding this comment

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

TBH, I don't think this is an improvement. Looking at the code before I can easily determine what it does, now I have to think about it.

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