private void analyseOverridedMethods(final Set methods) throws ClassNotFoundException { this.receiveVisitor(new Visitor() { public void visit(Class clazz) { if (clazz.getName().indexOf("Listener") != -1) {  Class[] tem = clazz.getSubClasses(); for (int i = 0; i < tem.length; i++) {  }  } Class[] subs = clazz.getSubClasses(); for (int i = 0; i < subs.length; i++) { Iterator iterator = clazz.getOverridedMethods(subs[i].getMethods()).iterator(); while (iterator.hasNext()) { Method method = (Method) iterator.next(); Method methodInSuperClass = new Method(clazz.getName(), method.getName(), method.getSignature()); if (subs[i].getName().indexOf("$") != -1) { methods.add(methodInSuperClass); } if (methods.contains(methodInSuperClass) && !methods.contains(method)) { notProcessedMethods.add(method);     } else { if (!methods.contains(method) && clazz.getName().indexOf("java.awt.") != -1) { if (subs[i].getName().indexOf("KComponent") != -1) { System.out.println(methodInSuperClass); System.out.println(method); System.out.println(); } } } } } } }); System.out.println(); System.out.println(); System.out.println(); System.out.println(); System.out.println(); System.out.println(); }
private void analyseOverridedMethods(Set methods) throws ClassNotFoundException { String[] cls = (String[]) classes.toArray(new String[0]); System.out.println("Free: "+ Runtime.getRuntime().freeMemory()); System.gc(); System.out.println("Free: "+ Runtime.getRuntime().freeMemory()); for (int i = 0; i < cls.length; i++) { this.analyseOverridedMethods(cls[i], methods); } }
	private void analyseOverridedMethods(final Set methods) throws ClassNotFoundException {		this.receiveVisitor(new Visitor() {			public void visit(Class clazz) {				if (clazz.getName().indexOf("Listener") != -1) {					//System.out.println(clazz.getName());					Class[] tem = clazz.getSubClasses();					for (int i = 0; i < tem.length; i++) {						//						System.out.println("    "+tem[i].getName());					}					//				System.out.println();				}				Class[] subs = clazz.getSubClasses();				for (int i = 0; i < subs.length; i++) {					Iterator iterator = clazz.getOverridedMethods(subs[i].getMethods()).iterator();					while (iterator.hasNext()) {						Method method = (Method) iterator.next();						Method methodInSuperClass = new Method(clazz.getName(), method.getName(), method.getSignature());						if (subs[i].getName().indexOf("$") != -1) {							methods.add(methodInSuperClass);						}						if (methods.contains(methodInSuperClass) && !methods.contains(method)) {							notProcessedMethods.add(method);							//if (subs[i].getName().indexOf("InstructionSet") != -1) {							//System.out.println(methodInSuperClass);							//System.out.println(clazz.getSuperClass().size());							//}						} else {							if (!methods.contains(method) && clazz.getName().indexOf("java.awt.") != -1) {								if (subs[i].getName().indexOf("KComponent") != -1) {									System.out.println(methodInSuperClass);									System.out.println(method);									System.out.println();								}							}						}					}				}			}		});		System.out.println();		System.out.println();		System.out.println();		System.out.println();		System.out.println();		System.out.println();	}