Class FindNullDeref

java.lang.Object
edu.umd.cs.findbugs.detect.FindNullDeref
All Implemented Interfaces:
NullDerefAndRedundantComparisonCollector, Detector, Priorities, UseAnnotationDatabase

public class FindNullDeref extends Object implements Detector, UseAnnotationDatabase, NullDerefAndRedundantComparisonCollector
A Detector to find instructions where a NullPointerException might be raised. We also look for useless reference comparisons involving null and non-null values.
See Also:
  • Field Details

    • log

      private final org.slf4j.Logger log
    • DEBUG

      public static final boolean DEBUG
    • DEBUG_NULLARG

      private static final boolean DEBUG_NULLARG
    • DEBUG_NULLRETURN

      private static final boolean DEBUG_NULLRETURN
    • MARK_DOOMED

      private static final boolean MARK_DOOMED
    • METHOD_NAME

      private static final String METHOD_NAME
    • CLASS

      private static final String CLASS
    • bugReporter

      private final BugReporter bugReporter
    • bugAccumulator

      private final BugAccumulator bugAccumulator
    • unconditionalDerefParamDatabase

      private ParameterNullnessPropertyDatabase unconditionalDerefParamDatabase
    • checkedDatabases

      private boolean checkedDatabases
    • classContext

      private ClassContext classContext
    • method

      private org.apache.bcel.classfile.Method method
    • invDataflow

      private IsNullValueDataflow invDataflow
    • vnaDataflow

      private ValueNumberDataflow vnaDataflow
    • previouslyDeadBlocks

      private BitSet previouslyDeadBlocks
    • methodAnnotation

      private NullnessAnnotation methodAnnotation
    • catchTypesForNull

      @StaticConstant public static final Set<String> catchTypesForNull
  • Constructor Details

    • FindNullDeref

      public FindNullDeref(BugReporter bugReporter)
  • Method Details