hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r155640 - jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java
Date Sun, 27 Feb 2005 21:20:23 GMT
Author: olegk
Date: Sun Feb 27 13:20:22 2005
New Revision: 155640

URL: http://svn.apache.org/viewcvs?view=rev&rev=155640
Log: (empty)


Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java?view=diff&r1=155639&r2=155640
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/util/LangUtils.java Sun
Feb 27 13:20:22 2005
@@ -60,7 +60,9 @@
 
     public static boolean equals(final Object[] a1, final Object[] a2) {
         if (a1 == null) {
-            if (a2 != null) {
+            if (a2 == null) {
+                return true;
+            } else {
                 return false;
             }
         } else {
@@ -70,11 +72,11 @@
                         return false;
                     }
                 }
+                return true;
             } else {
                 return false;
             }
         }
-        return true;
     }
     
 }



Mime
View raw message