Iterator i = repository.getProgramClasses().iterator(); Set overridedMethods = new HashSet(); while (i.hasNext()) { Class baseClass = new Class((String) i.next(), true); JavaClass[] classes = Repository.getSuperClasses(baseClass .getName()); for (int j = 0; j < classes.length; j++) { Class superClass = (Class) abstractClasses.get(classes[j] .getClassName()); if (superClass != null) { overridedMethods.addAll(superClass .getOverridedMethods(baseClass.getMethods())); } } } abstractClasses.clear(); return overridedMethods; }
Iterator i = repository.getProgramClasses().iterator(); Set overridedMethods = new HashSet(); while (i.hasNext()) { Class baseClass = repository.loadClass((String) i.next(), true); JavaClass[] classes = repository.findClass(baseClass.getName()) .getSuperClasses(); for (int j = 0; j < classes.length; j++) { Class superClass = (Class) abstractClasses.get(classes[j] .getClassName()); if (superClass != null) { overridedMethods.addAll(superClass .getOverridedMethods(baseClass.getMethods())); } } } abstractClasses.clear(); return overridedMethods; }
	private Set analiseAbstractMethods() throws ClassNotFoundException {		Iterator i = repository.getProgramClasses().iterator();		Set overridedMethods = new HashSet();		while (i.hasNext()) {			Class baseClass = new Class((String) i.next(), true);			JavaClass[] classes = Repository.getSuperClasses(baseClass					.getName());			for (int j = 0; j < classes.length; j++) {				Class superClass = (Class) abstractClasses.get(classes[j]						.getClassName());				if (superClass != null) {					overridedMethods.addAll(superClass							.getOverridedMethods(baseClass.getMethods()));				}			}		}		abstractClasses.clear();		return overridedMethods;	}