A little more use of generics.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@747 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
rmfuhrer 2007-02-14 16:16:23 +00:00
parent b5d07d2443
commit bcce58c4ed
1 changed files with 3 additions and 3 deletions

View File

@ -68,11 +68,11 @@ public abstract class ScriptEntryPoints implements Entrypoints {
public Iterator<ScriptEntryPoint> iterator() {
Set<ScriptEntryPoint> ES = new HashSet<ScriptEntryPoint>();
Iterator classes = scriptType.getClassLoader().iterateAllClasses();
Iterator<IClass> classes = scriptType.getClassLoader().iterateAllClasses();
while ( classes.hasNext() ) {
IClass cls = (IClass)classes.next();
IClass cls = classes.next();
if (cha.isSubclassOf(cls, scriptType)) {
for (Iterator methods = cls.getDeclaredMethods().iterator(); methods.hasNext();) {
for (Iterator<IMethod> methods = cls.getDeclaredMethods().iterator(); methods.hasNext();) {
ES.add(new ScriptEntryPoint(((IMethod)methods.next())));
}
}