directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r557096 - /directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java
Date Wed, 18 Jul 2007 00:31:34 GMT
Author: erodriguez
Date: Tue Jul 17 17:31:33 2007
New Revision: 557096

URL: http://svn.apache.org/viewvc?view=rev&rev=557096
Log:
Warnings clean-up:  Generics for Comparable classes in protocol-changepw.

Modified:
    directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java

Modified: directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java?view=diff&rev=557096&r1=557095&r2=557096
==============================================================================
--- directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java
(original)
+++ directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/exceptions/ErrorType.java
Tue Jul 17 17:31:33 2007
@@ -32,7 +32,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public final class ErrorType implements Comparable
+public final class ErrorType implements Comparable<ErrorType>
 {
     /**
      * Constant for the "Request failed due to being malformed" error type.
@@ -89,7 +89,7 @@
     /**
      * A list of all the error type constants.
      */
-    public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values
) );
+    public static final List<ErrorType> VALUES = Collections.unmodifiableList( Arrays.asList(
values ) );
 
     /**
      * The name of the error type.
@@ -139,11 +139,11 @@
      * type.
      *
      * @param that the object to compare this ErrorType to
-     * @return ordinal - ( ( ErrorType ) that ).ordinal;
+     * @return ordinal - that.ordinal;
      */
-    public int compareTo( Object that )
+    public int compareTo( ErrorType that )
     {
-        return this.ordinal - ( ( ErrorType ) that ).ordinal;
+        return this.ordinal - that.ordinal;
     }
 
 



Mime
View raw message