hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1698038 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java
Date Thu, 27 Aug 2015 00:02:20 GMT
Author: ggregory
Date: Thu Aug 27 00:02:20 2015
New Revision: 1698038

URL: http://svn.apache.org/r1698038
Log:
Statement unnecessarily nested within else clause.

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java?rev=1698038&r1=1698037&r2=1698038&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/BasicHeader.java
Thu Aug 27 00:02:20 2015
@@ -84,9 +84,8 @@ public class BasicHeader implements Head
         if (this.value != null) {
             final ParserCursor cursor = new ParserCursor(0, this.value.length());
             return BasicHeaderValueParser.INSTANCE.parseElements(this.value, cursor);
-        } else {
-            return new HeaderElement[] {};
         }
+        return new HeaderElement[] {};
     }
 
 }



Mime
View raw message