edu.umd.cs.findbugs.ba.npe
Class NullDerefAndRedundantComparisonFinder

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.npe.NullDerefAndRedundantComparisonFinder

public class NullDerefAndRedundantComparisonFinder
extends java.lang.Object

A user-friendly front end for finding null pointer dereferences and redundant null comparisions.

Author:
David Hovemeyer
See Also:
IsNullValueAnalysis

Constructor Summary
NullDerefAndRedundantComparisonFinder(ClassContext classContext, org.apache.bcel.classfile.Method method, IsNullValueDataflow invDataflow, NullDerefAndRedundantComparisonCollector collector)
          Constructor.
 
Method Summary
 void execute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullDerefAndRedundantComparisonFinder

public NullDerefAndRedundantComparisonFinder(ClassContext classContext,
                                             org.apache.bcel.classfile.Method method,
                                             IsNullValueDataflow invDataflow,
                                             NullDerefAndRedundantComparisonCollector collector)
Constructor.

Parameters:
classContext - the ClassContext
method - the method to analyze
invDataflow - the IsNullValueDataflow to use
collector - the NullDerefAndRedundantComparisonCollector used to report null derefs and redundant null comparisons
Method Detail

execute

public void execute()
             throws DataflowAnalysisException,
                    CFGBuilderException
Throws:
DataflowAnalysisException
CFGBuilderException