harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r824001 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java
Date Sun, 11 Oct 2009 02:50:08 GMT
Author: ndbeyer
Date: Sun Oct 11 02:50:08 2009
New Revision: 824001

URL: http://svn.apache.org/viewvc?rev=824001&view=rev
Log:
remove trivial optimization to simplify code

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java?rev=824001&r1=824000&r2=824001&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLStreamHandler.java
Sun Oct 11 02:50:08 2009
@@ -403,7 +403,7 @@
      */
     protected boolean hostsEqual(URL url1, URL url2) {
         String host1 = getHost(url1), host2 = getHost(url2);
-        if (host1 == host2 || (host1 != null && host1.equalsIgnoreCase(host2))) {
+        if (host1 != null && host1.equalsIgnoreCase(host2)) {
             return true;
         }
         // Compare host address if the host name is not equal.



Mime
View raw message