[java] NullAssignment - FP with ternay and null as constructor argument #1669
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 6.11.0
Rule: NullAssignment
Description:
Should below code really trigger the
NullAssignment
rule?Of course I could write
"null"
instead ofnull
but why should this be worse than wasting a string constant pool place?Code Sample demonstrating the issue:
Running PMD through: Gradle
The text was updated successfully, but these errors were encountered: