harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r822488 - /harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java
Date Tue, 06 Oct 2009 20:40:09 GMT
Author: tellison
Date: Tue Oct  6 20:40:09 2009
New Revision: 822488

URL: http://svn.apache.org/viewvc?rev=822488&view=rev
Log:
Fix equals() to work with null argument.

Modified:
    harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java

Modified: harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java?rev=822488&r1=822487&r2=822488&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/rmi/src/main/java/javax/rmi/ssl/SslRMIClientSocketFactory.java
Tue Oct  6 20:40:09 2009
@@ -72,7 +72,11 @@
         return soc;
     }
 
+    @Override
     public boolean equals(Object obj) {
+        if (obj == null) {
+            return false;
+        }
         return this.getClass().equals(obj.getClass());
     }
 



Mime
View raw message