#11 getActionName uses keyword as name

open
nobody
None
5
2010-05-22
2010-05-22
Bert
No

aperantly from version 1.5 of java enum has become a keyword
so this function in InputHandler cannot use it as a name

public static String getActionName(ActionListener listener)
{
Enumeration enum1 = getActions();
while(enum1.hasMoreElements())
{
String name = (String)enum1.nextElement();
ActionListener _listener = getAction(name);
if(_listener == listener)
return name;
}
return null;
}

i just renamed enum to enum1 :p

Discussion