Class NullnessAssumptionAnalysis


  • public class NullnessAssumptionAnalysis
    extends BackwardFlowAnalysis<Unit,​NullnessAssumptionAnalysis.AnalysisInfo>
    An intraprocedural nullness assumption analysis that computes for each location and each value in a method if the value (before or after that location) is treated as definitely null, definitely non-null or neither. This information could be useful in deciding whether or not to insert code that accesses a potentially null object. If the original program assumes a value is non-null, then adding a use of that value will not introduce any NEW nullness errors into the program. This code may be buggy, or just plain wrong. It has not been checked.
    Author:
    Richard L. Halpert Adapted from Eric Bodden's NullnessAnalysis