Class AttributesUtils

java.lang.Object
com.mebigfatguy.fbcontrib.utils.AttributesUtils

public final class AttributesUtils extends Object
a collection of static methods for working with code attribute queries
  • 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 from
      pc - the pc to check
      Returns:
      whether the pc is in user code