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:
parent
b5d07d2443
commit
bcce58c4ed
|
@ -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())));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue