commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/enum ValuedEnum.java
Date Thu, 14 Nov 2002 21:52:14 GMT
scolebourne    2002/11/14 13:52:14

  Modified:    lang/src/java/org/apache/commons/lang/enum ValuedEnum.java
  Log:
  Javadoc error and clarification, from Martin Cooper.
  
  Revision  Changes    Path
  1.2       +4 -3      jakarta-commons/lang/src/java/org/apache/commons/lang/enum/ValuedEnum.java
  
  Index: ValuedEnum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/ValuedEnum.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ValuedEnum.java	11 Aug 2002 23:17:54 -0000	1.1
  +++ ValuedEnum.java	14 Nov 2002 21:52:14 -0000	1.2
  @@ -56,7 +56,8 @@
   import java.util.Iterator;
   import java.util.List;
   /**
  - * Abstract superclass for type-safe enums with integer values.
  + * Abstract superclass for type-safe enums with integer values suitable
  + * for use in <code>switch</code> statements.
    * <p>
    * <em>NOTE:</em>Due to the way in which Java ClassLoaders work, comparing
Enum objects
    * should always be done using the equals() method, not ==. The equals() method will
  @@ -65,7 +66,7 @@
    * To use this class, it must be subclassed. For example:
    *
    * <pre>
  - * public final class JavaVersion extends ValuedEnum {
  + * public final class JavaVersionEnum extends ValuedEnum {
    *   //standard enums for version of JVM
    *   public static final int  JAVA1_0_VALUE  = 100;
    *   public static final int  JAVA1_1_VALUE  = 110;
  
  
  

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


Mime
View raw message