directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1039034 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
Date Thu, 25 Nov 2010 13:32:42 GMT
Author: kayyagari
Date: Thu Nov 25 13:32:42 2010
New Revision: 1039034

URL: http://svn.apache.org/viewvc?rev=1039034&view=rev
Log:
o fixed equals method signature

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java?rev=1039034&r1=1039033&r2=1039034&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/HostAddresses.java
Thu Nov 25 13:32:42 2010
@@ -142,13 +142,16 @@ public class HostAddresses extends Abstr
      * @param that Th {@link HostAddresses} we want to compare with the current one
      * @return true if two {@link HostAddresses} are equal.
      */
-    public boolean equals( HostAddresses that )
+    @Override
+    public boolean equals( Object obj )
     {
-        if ( that == null ) 
+        if ( obj == null ) 
         {
             return false;
         }
         
+        HostAddresses that = ( HostAddresses ) obj;
+        
         // Addresses can't be null after creation
         if ( addresses.size() != that.addresses.size() )
         {



Mime
View raw message