You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/08/31 12:51:02 UTC
cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/enum Enum.java
scolebourne 2002/08/31 03:51:02
Modified: lang/src/java/org/apache/commons/lang/enum Enum.java
Log:
Improve checkstyle report
Revision Changes Path
1.2 +8 -1 jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java
Index: Enum.java
===================================================================
RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Enum.java 11 Aug 2002 23:17:54 -0000 1.1
+++ Enum.java 31 Aug 2002 10:51:02 -0000 1.2
@@ -131,9 +131,14 @@
* Enable the iterator to retain the source code order
*/
private static class Entry {
+ /** Map of Enum name to Enum */
final Map map = new HashMap(50);
+ /** List of Enums in source code order */
final List list = new ArrayList(25);
+ /**
+ * Restrictive constructor
+ */
private Entry() {
}
}
@@ -162,6 +167,7 @@
/**
* Handle the deserialization of the class to ensure that multiple
* copies are not wastefully created, or illegal enum types created.
+ * @return the resolved object
*/
protected Object readResolve() {
return Enum.getEnum(getClass(), getName());
@@ -262,6 +268,7 @@
* Identity is tested for first, so this method usually runs fast.
*
* @param other the other object to compare for equality
+ * @return true if the Enums are equal
*/
public final boolean equals(Object other) {
if (other == this) {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>