private boolean checkInterfaceHierarchy(Class interfaceToCheck) {
if (interfaceToCheck.getName().equals(className)) {
return true;
}
Class[] superInterfaces = interfaceToCheck.getInterfaces();
<BUG>for (int i = 0; i < superInterfaces.length; i++) {
if (checkInterfaceHierarchy(superInterfaces[i])) {
return true;</BUG>
}
}

private boolean checkInterfaceHierarchy(Class interfaceToCheck) {
if (interfaceToCheck.getName().equals(className)) {
return true;
}
Class[] superInterfaces = interfaceToCheck.getInterfaces();
for (Class superInterface : superInterfaces) {
if (checkInterfaceHierarchy(superInterface)) {
return true;
}
}
