hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1558047 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
Date Tue, 14 Jan 2014 14:33:24 GMT
Author: ggregory
Date: Tue Jan 14 14:33:24 2014
New Revision: 1558047

URL: http://svn.apache.org/r1558047
Log:
Simplify: no need for so many branches.

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java?rev=1558047&r1=1558046&r2=1558047&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
Tue Jan 14 14:33:24 2014
@@ -134,12 +134,9 @@ public class URLEncodedUtils {
             if (elems.length > 0) {
                 final String contentType = elems[0].getName();
                 return contentType.equalsIgnoreCase(CONTENT_TYPE);
-            } else {
-                return false;
             }
-        } else {
-            return false;
         }
+        return false;
     }
 
     /**



Mime
View raw message