Class DumbMethods

    • Field Detail

      • CONDITION_TYPE

        private static final org.apache.bcel.generic.ObjectType CONDITION_TYPE
      • sawCurrentTimeMillis

        private boolean sawCurrentTimeMillis
      • gcInvocationBugReport

        private BugInstance gcInvocationBugReport
      • gcInvocationPC

        private int gcInvocationPC
      • exceptionTable

        private org.apache.bcel.classfile.CodeException[] exceptionTable
      • primitiveObjCtorSeen

        private java.lang.String primitiveObjCtorSeen
      • ctorSeen

        private boolean ctorSeen
      • prevOpcodeWasReadLine

        private boolean prevOpcodeWasReadLine
      • prevOpcode

        private int prevOpcode
      • isPublicStaticVoidMain

        private boolean isPublicStaticVoidMain
      • sawCheckForNonNegativeSignedByte

        private int sawCheckForNonNegativeSignedByte
      • sinceBufferedInputStreamReady

        private int sinceBufferedInputStreamReady
      • randomNextIntState

        private int randomNextIntState
      • checkForBitIorofSignedByte

        private boolean checkForBitIorofSignedByte
      • OOM_CATCH_LEN

        private static final int OOM_CATCH_LEN
        A heuristic - how long a catch block for OutOfMemoryError might be.
        See Also:
        Constant Field Values
      • testingEnabled

        private final boolean testingEnabled
      • absoluteValueAccumulator

        private final BugAccumulator absoluteValueAccumulator
      • MICROS_PER_DAY_OVERFLOWED_AS_INT

        private static final int MICROS_PER_DAY_OVERFLOWED_AS_INT
        See Also:
        Constant Field Values
      • isSynthetic

        boolean isSynthetic
      • opcodesSincePendingAbsoluteValueBug

        int opcodesSincePendingAbsoluteValueBug
      • pendingAbsoluteValueBug

        BugInstance pendingAbsoluteValueBug
      • sawLoadOfMinValue

        boolean sawLoadOfMinValue
    • Constructor Detail

      • DumbMethods

        public DumbMethods​(BugReporter bugReporter)
    • Method Detail

      • visit

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

        public void visitAfter​(org.apache.bcel.classfile.JavaClass obj)
        Overrides:
        visitAfter in class PreorderVisitor
      • isTestMethod

        public static boolean isTestMethod​(org.apache.bcel.classfile.Method method)
      • visit

        public void visit​(org.apache.bcel.classfile.Field field)
        Overrides:
        visit in class BetterVisitor
      • visit

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

        private void reportVacuousBitOperation​(int seen,
                                               OpcodeStack.Item item)
        Parameters:
        seen -
        item -
      • stackEntryThatMustBeNonnegative

        private int stackEntryThatMustBeNonnegative​(int seen)
        Return index of stack entry that must be nonnegative. Return -1 if no stack entry is required to be nonnegative.
      • getStackEntryOfListCallThatMustBeNonnegative

        private int getStackEntryOfListCallThatMustBeNonnegative()
      • checkMonitorWait

        private void checkMonitorWait()
      • isMonitorWait

        private boolean isMonitorWait​(java.lang.String name,
                                      java.lang.String sig)
      • visit

        public void visit​(org.apache.bcel.classfile.Code obj)
        Overrides:
        visit in class DismantleBytecode
      • flush

        private void flush()
        Flush out cached state at the end of a method.