-1

There is no assignment in the below code example. I think that this rule should not apply to this code.

problem illustration

My setup:

  • SonarQube 4.5.4 LTS
  • PMD plugin 2.3
Community
  • 1
  • 1
Alix
  • 2,630
  • 30
  • 72
  • The question is not very clear. However, see i.e. http://stackoverflow.com/questions/2128409/java-is-it-ok-to-set-integer-null for opinions on that matter. – Dominik Gebhart Jul 22 '15 at 22:06
  • I'm not sure I understand. The question whether the code is in fact an assignment? – Alix Jul 23 '15 at 06:36

1 Answers1

2

I discovered that this is a known issue: http://sourceforge.net/p/pmd/bugs/901/

Alix
  • 2,630
  • 30
  • 72