private List getParameters(final List list) {
if (arguments != null) {
- final Enumeration vars = arguments.keys();
+ final Enumeration vars = arguments.elements();
while (vars.hasMoreElements()) {
- list.add(new VariableUsage((String) vars.nextElement(), sourceStart));
+ final VariableDeclaration variable = (VariableDeclaration) vars.nextElement();
+ list.add(new VariableUsage(variable.name(), variable.sourceStart));
}
}
return list;