Class BuildRandomReturningMethodsDatabase

  • All Implemented Interfaces:
    edu.umd.cs.findbugs.Detector, edu.umd.cs.findbugs.Priorities

    public class BuildRandomReturningMethodsDatabase
    extends Object
    implements edu.umd.cs.findbugs.Detector
    This class is a detector implementation which runs in the first pass of analysis. With a very simplistic assumption this identifies whether a method might return a pseudo-random value purely based on the fact that it calls a method that's already known to return a pseudo-random value. A better approach is doing proper dataflow analysis to understand whether the pseudo-random value makes it to the return instruction.
    • Constructor Detail

      • BuildRandomReturningMethodsDatabase

        public BuildRandomReturningMethodsDatabase​(edu.umd.cs.findbugs.BugReporter reporter)
    • Method Detail

      • visitClassContext

        public void visitClassContext​(edu.umd.cs.findbugs.ba.ClassContext classContext)
        Specified by:
        visitClassContext in interface edu.umd.cs.findbugs.Detector
      • report

        public void report()
        Specified by:
        report in interface edu.umd.cs.findbugs.Detector