1 19 20 package edu.umd.cs.findbugs.ba; 21 22 import org.apache.bcel.classfile.JavaClass; 23 import org.apache.bcel.classfile.Method; 24 25 29 public class MethodUnprofitableException extends CFGBuilderException { 30 private static final long serialVersionUID = 1L; 31 private final XMethod method; 32 33 38 public MethodUnprofitableException(JavaClassAndMethod method) { 39 super("Appears unprofitable to analyze " + method); 40 this.method = XFactory.createXMethod(method.getJavaClass(), method.getMethod()); 41 } 42 43 49 public MethodUnprofitableException(JavaClass jClass, Method method) { 50 super("Appears unprofitable to analyze " + method); 51 this.method = XFactory.createXMethod(jClass, method); 52 } 53 54 57 public XMethod getMethod() { 58 return method; 59 } 60 61 } 62 | Popular Tags |