.getToNotCheckMethodSet(currentClassName);
checkCurrentClass();
currentClassName = classInfoFactory
.superClassName(currentClassName);
} catch (ClassInfoException exception) {
throw new EnhanceException(exception);
} catch (ClassNotFoundException exception) {
throw new EnhanceException(exception);
}
}
final List<OpcodeNodeMethod> list = checkMethodListener
.getOtherInstancePrivateCallList();
if (checkMethodListener.hasDirectAccess() || !list.isEmpty()) {
final StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append('\n');
if (!list.isEmpty()) {
stringBuilder.append("private method call:\n");
for (OpcodeNodeMethod opcodeNodeMethod : list) {
stringBuilder.append(opcodeNodeMethod.getClassName());
stringBuilder.append('#');
stringBuilder.append(opcodeNodeMethod.getMethodName());
stringBuilder.append(' ');
stringBuilder.append(opcodeNodeMethod.getDesc());
stringBuilder.append(" line ");
stringBuilder.append(opcodeNodeMethod.getLineNumber());
stringBuilder.append('\n');
}
}
if (checkMethodListener.hasDirectAccess()) {
stringBuilder.append("direct field access:\n");
// String previousMethodAbsoluteName = null;
for (DirectAccessInfo directAccessInfo : checkMethodListener
.getDirectAccessSet()) {
stringBuilder.append(directAccessInfo.toString());
stringBuilder.append('\n');
// if (previousMethodAbsoluteName != null
// && !previousMethodAbsoluteName.equals(directAccessInfo
// .getMethodAbsoluteName())) {
// stringBuilder.append(checkMethodListener
// .unassembled(directAccessInfo
// .getMethodAbsoluteName()));
// }
// previousMethodAbsoluteName = directAccessInfo
// .getMethodAbsoluteName();
}
// stringBuilder.append(checkMethodListener
// .unassembled(previousMethodAbsoluteName));
stringBuilder.append('\n');
}
throw new EnhanceException(stringBuilder.toString());
}
}