Class ThrowingExceptions

    • Field Detail

      • exceptionThrown

        private java.lang.String exceptionThrown
    • Constructor Detail

      • ThrowingExceptions

        public ThrowingExceptions​(BugReporter bugReporter)
    • Method Detail

      • visit

        public void visit​(org.apache.bcel.classfile.Method obj)
        Overrides:
        visit in class BetterVisitor
      • visitAfter

        public void visitAfter​(org.apache.bcel.classfile.Code obj)
        Description copied from class: PreorderVisitor
        Called after visiting a code attribute
        Overrides:
        visitAfter in class PreorderVisitor
        Parameters:
        obj - Code that was just visited
      • reportBug

        private void reportBug​(java.lang.String bugName,
                               XMethod method)
      • parentThrows

        private boolean parentThrows​(@NonNull
                                     org.apache.bcel.classfile.JavaClass clazz,
                                     @NonNull
                                     org.apache.bcel.classfile.Method method,
                                     @DottedClassName
                                     java.lang.String exception)
      • doesThrowException

        private boolean doesThrowException​(org.apache.bcel.classfile.Method m,
                                           @DottedClassName
                                           java.lang.String exception)
      • signatureMatches

        private boolean signatureMatches​(org.apache.bcel.classfile.Method child,
                                         org.apache.bcel.classfile.Method parent)