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:
parent
927e736103
commit
df326b1747
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue