Affects PMD Version: 6.11.0
Rule: NullAssignment
Description:
Should below code really trigger the NullAssignment
rule?
Of course I could write "null"
instead of null
but why should this be worse than wasting a string constant pool place?
Code Sample demonstrating the issue:
throw new IllegalArgumentException(String.format( "Unsupported client with class '%s' given", (discordClient == null) ? null : discordClient.getClass()));
Running PMD through: Gradle
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4