commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/enums ValuedEnum.java
Date Fri, 15 Oct 2004 00:43:29 GMT
ggregory    2004/10/14 17:43:29

  Modified:    lang/src/java/org/apache/commons/lang/enums ValuedEnum.java
  Log:
  'enum' should not be used as an identifier, since it is a reserved keyword from source level
1.5.
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-commons/lang/src/java/org/apache/commons/lang/enums/ValuedEnum.java
  
  Index: ValuedEnum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enums/ValuedEnum.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ValuedEnum.java	30 Sep 2004 06:35:52 -0000	1.3
  +++ ValuedEnum.java	15 Oct 2004 00:43:29 -0000	1.4
  @@ -139,9 +139,9 @@
           }
           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;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message