Package com.mebigfatguy.fbcontrib.utils
Class AttributesUtils
java.lang.Object
com.mebigfatguy.fbcontrib.utils.AttributesUtils
a collection of static methods for working with code attribute queries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidLineNumber(org.apache.bcel.classfile.Code obj, int pc) returns whether the pc is at a line number that also appears for a another byte code offset later on in the method.
-
Constructor Details
-
AttributesUtils
private AttributesUtils()
-
-
Method Details
-
isValidLineNumber
public static boolean isValidLineNumber(org.apache.bcel.classfile.Code obj, int pc) returns whether the pc is at a line number that also appears for a another byte code offset later on in the method. If this occurs we are in a jdk6 finally replicated block, and so don't report this. If the code has no line number table, then just report it.- Parameters:
obj- the code object to find line number attributes frompc- the pc to check- Returns:
- whether the pc is in user code
-