From f2e2fdbb217ab99245bd87d12b23925420b4fbcf Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 14 Nov 2002 21:52:14 +0000 Subject: [PATCH] Javadoc error and clarification, from Martin Cooper. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137126 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/enum/ValuedEnum.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/commons/lang/enum/ValuedEnum.java b/src/java/org/apache/commons/lang/enum/ValuedEnum.java index 82edc7475..1fd44d68b 100644 --- a/src/java/org/apache/commons/lang/enum/ValuedEnum.java +++ b/src/java/org/apache/commons/lang/enum/ValuedEnum.java @@ -56,7 +56,8 @@ package org.apache.commons.lang.enum; 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 switch statements. *

* NOTE: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 @@ import java.util.List; * To use this class, it must be subclassed. For example: * *

- * 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;
@@ -128,7 +129,7 @@ import java.util.List;
  * 

* * @author Stephen Colebourne - * @version $Id: ValuedEnum.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $ + * @version $Id: ValuedEnum.java,v 1.2 2002/11/14 21:52:14 scolebourne Exp $ */ public abstract class ValuedEnum extends Enum { /**