Class SuperfluousInstanceOf

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

    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.
    • Field Detail

      • varTable

        private org.apache.bcel.classfile.LocalVariableTable varTable
      • state

        private int state
      • register

        private int register
    • Constructor Detail

      • SuperfluousInstanceOf

        public SuperfluousInstanceOf​(BugReporter bugReporter)