hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1545003 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java
Date Sun, 24 Nov 2013 15:50:10 GMT
Author: sebb
Date: Sun Nov 24 15:50:10 2013
New Revision: 1545003

URL: http://svn.apache.org/r1545003
Log:
Inline variable and avoid hiding field of same name

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java?rev=1545003&r1=1545002&r2=1545003&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/util/ExpandableBuffer.java
Sun Nov 24 15:50:10 2013
@@ -184,8 +184,7 @@ public class ExpandableBuffer implements
     public String toString() {
         final StringBuilder sb = new StringBuilder();
         sb.append("[mode=");
-        final int mode = getMode();
-        if (mode == INPUT_MODE) {
+        if (getMode() == INPUT_MODE) {
             sb.append("in");
         } else {
             sb.append("out");



Mime
View raw message