JavaClass inf = Repository.lookupClass(interfaceName.replace('/', '.')); if (superObj.instanceOf(inf)) redundantInfNames.add(inf.getClassName());
if (!"java/io/Serializable".equals(interfaceName)) { JavaClass inf = Repository.lookupClass(interfaceName.replace('/', '.')); if (superObj.instanceOf(inf)) redundantInfNames.add(inf.getClassName()); }
	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 (String interfaceName : interfaceNames) {				JavaClass inf = Repository.lookupClass(interfaceName.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);				for (String redundantInfName : redundantInfNames)					bug.addClass(redundantInfName).describe("INTERFACE_TYPE");									bugReporter.reportBug(bug);			}		} catch (ClassNotFoundException cnfe) {			bugReporter.reportMissingClass(cnfe);		}	}