Rename variable for JDK1.5 compliance

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@429876 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2006-08-08 23:24:49 +00:00
parent 927e736103
commit df326b1747
1 changed files with 3 additions and 3 deletions

View File

@ -144,9 +144,9 @@ public abstract class ValuedEnum extends Enum {
}
List list = Enum.getEnumList(enumClass);
for (Iterator it = list.iterator(); it.hasNext();) {
ValuedEnum enum = (ValuedEnum) it.next();
if (enum.getValue() == value) {
return enum;
ValuedEnum enumeration = (ValuedEnum) it.next();
if (enumeration.getValue() == value) {
return enumeration;
}
}
return null;