for (int i = 0; i < interfaceNames.length; i++) { JavaClass inf = Repository.lookupClass(interfaceNames[i].replace('/','.'));
for (String interfaceName : interfaceNames) { JavaClass inf = Repository.lookupClass(interfaceName.replace('/', '.'));
	public void visitClassContext(ClassContext classContext) {		JavaClass obj = classContext.getJavaClass();		String superClassName = obj.getSuperclassName();		if (superClassName.equals("java.lang.Object"))			return;				String[] interfaceNames = obj.getInterfaceNames();		if ((interfaceNames == null) || (interfaceNames.length == 0))			return;		try {			JavaClass superObj = obj.getSuperClass();			SortedSet<String> redundantInfNames = new TreeSet<String>();						for (int i = 0; i < interfaceNames.length; i++) {				JavaClass inf = Repository.lookupClass(interfaceNames[i].replace('/','.'));				if (superObj.instanceOf(inf))					redundantInfNames.add(inf.getClassName());			}							if (redundantInfNames.size() > 0) {				BugInstance bug = new BugInstance( this, "RI_REDUNDANT_INTERFACES", LOW_PRIORITY )							.addClass(obj);				Iterator<String> it = redundantInfNames.iterator();				while (it.hasNext())					bug.addClass(it.next()).describe("INTERFACE_TYPE");									bugReporter.reportBug(bug);			}		} catch (ClassNotFoundException cnfe) {			bugReporter.reportMissingClass(cnfe);		}	}