[java] Update rule UnnecessaryBooleanAssertion#3525
Conversation
Generated by 🚫 Danger |
|
There seem to a lot of false negatives now: is missing now... Maybe that's a real fix? According to the rule description only boolean literals should be detected: https://pmd.github.io/pmd/pmd_rules_java_errorprone.html#unnecessarybooleanassertion There are two interesting test cases on pmd6: But I guess, this is a little bit different: Instead of |
|
Ok, see #3087 - this is actually UnneccessaryBooleanAssertion doing the same as SimplifiableTestAssertion (formerly SimplifyBooleanAssertion). So, we should probably really remove this from this rule. |
... SimplifiableTestAssertion Fixes pmd#3087
adangel
left a comment
There was a problem hiding this comment.
According to the regression tester report, this looks fine. I'm going to merge this.
Describe the PR
Part of #2701
Note: This fixes #3087