Class DumbMethods.RandomOnceSubDetector
java.lang.Object
edu.umd.cs.findbugs.detect.DumbMethods.SubDetector
edu.umd.cs.findbugs.detect.DumbMethods.RandomOnceSubDetector
- Enclosing class:
DumbMethods
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanTrue if a freshly createdRandominstance exists on ToS (Top op Stack) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitMethod(org.apache.bcel.classfile.Method method) voidsawOpcode(int seen)
-
Field Details
-
freshRandomOnTos
private boolean freshRandomOnTosTrue if a freshly createdRandominstance exists on ToS (Top op Stack) -
freshRandomOneBelowTos
private boolean freshRandomOneBelowTos
-
-
Constructor Details
-
RandomOnceSubDetector
private RandomOnceSubDetector()
-
-
Method Details
-
initMethod
public void initMethod(org.apache.bcel.classfile.Method method) - Overrides:
initMethodin classDumbMethods.SubDetector
-
sawOpcode
public void sawOpcode(int seen) - Specified by:
sawOpcodein classDumbMethods.SubDetector
-