String methodName = ((ConstantUtf8) cp.getConstant(cnat.getNameIndex(), CONSTANT_Utf8)).getBytes(); String className = cp.getConstantString(cmr.getClassIndex(), CONSTANT_Class).replace('/', '.');
String methodName = ((ConstantUtf8) cp.getConstant(cnat.getNameIndex(), CONSTANT_Utf8)).getBytes().toLowerCase(); String className = cp.getConstantString(cmr.getClassIndex(), CONSTANT_Class).replace('/', '.').toLowerCase();
	private void init(JavaClass jclass) {		ConstantPool cp = jclass.getConstantPool();		int numConstants = cp.getLength();		for (int i = 0; i < numConstants; ++i) {			try {				Constant c = cp.getConstant(i);				if (c instanceof ConstantMethodref) {					ConstantMethodref cmr = (ConstantMethodref) c;					ConstantNameAndType cnat = (ConstantNameAndType)cp.getConstant(cmr.getNameAndTypeIndex(), CONSTANT_NameAndType);					String methodName = ((ConstantUtf8) cp.getConstant(cnat.getNameIndex(), CONSTANT_Utf8)).getBytes();					String className = cp.getConstantString(cmr.getClassIndex(), CONSTANT_Class).replace('/', '.');					if (className.indexOf("assert") >= 0 ||						methodName.indexOf("assert") >= 0 || methodName.indexOf("error") >= 0 ||						methodName.indexOf("abort") >= 0 || methodName.indexOf("check") >= 0 ||						methodName.indexOf("failed") >= 0)						assertionMethodRefSet.set(i);				}			} catch (ClassFormatException e) {				// FIXME: should report			}		}	}