Class SuperfluousInstanceOf

  • All Implemented Interfaces:
    Detector, Priorities, StatelessDetector, Constants2, java.lang.Cloneable, org.apache.bcel.classfile.Visitor, org.apache.bcel.Constants

    public class SuperfluousInstanceOf
    extends BytecodeScanningDetector
    implements StatelessDetector
    Find occurrences of a instanceof b where it can be determined statically whether this is true or false. This may signal a misunderstanding of the inheritance hierarchy in use, and potential bugs.
    Author:
    Dave Brosius
    • Constructor Detail

      • SuperfluousInstanceOf

        public SuperfluousInstanceOf​(BugReporter bugReporter)