This rule is defined by the following Java class: net.sourceforge.pmd.rules.design.NullAssignmentRule
Example:
public class Foo { public void bar() { Object x = null; // This is OK. x = new Object(); // Big, complex piece of code here. x = null; // This is BAD. // Big, complex piece of code here. } }