edu.umd.cs.findbugs.ba.npe
Interface NullDerefAndRedundantComparisonCollector

All Known Implementing Classes:
FindNullDeref

public interface NullDerefAndRedundantComparisonCollector

Callback interface for collecting null pointer derefs and redundant null comparisons.

Author:
David Hovemeyer
See Also:
NullDerefAndRedundantComparisonFinder

Method Summary
 void foundNullDeref(Location location, ValueNumber valueNumber, IsNullValue refValue)
          Subclasses should override this method to capture locations where a null pointer is dereferenced.
 void foundRedundantNullCheck(Location location, RedundantBranch redundantBranch)
          Subclasses should override this method to capture locations where a redundant null comparision is performed.
 

Method Detail

foundNullDeref

void foundNullDeref(Location location,
                    ValueNumber valueNumber,
                    IsNullValue refValue)
Subclasses should override this method to capture locations where a null pointer is dereferenced.

Parameters:
location - the Location of the null dereference
valueNumber - the ValueNumber of the possibly-null value
refValue - the kind of possibly-null value dereferenced

foundRedundantNullCheck

void foundRedundantNullCheck(Location location,
                             RedundantBranch redundantBranch)
Subclasses should override this method to capture locations where a redundant null comparision is performed.

Parameters:
location - the Location of the redundant null check
redundantBranch - the RedundantBranch