You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2013/11/24 23:21:39 UTC

svn commit: r1545088 - in /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs: ChunkEncoder.java IdentityDecoder.java IdentityEncoder.java LengthDelimitedDecoder.java LengthDelimitedEncoder.java

Author: sebb
Date: Sun Nov 24 22:21:39 2013
New Revision: 1545088

URL: http://svn.apache.org/r1545088
Log:
Rename local variable to avoid clash with field

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkEncoder.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityEncoder.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedEncoder.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkEncoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkEncoder.java?rev=1545088&r1=1545087&r2=1545088&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkEncoder.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/ChunkEncoder.java Sun Nov 24 22:21:39 2013
@@ -148,11 +148,11 @@ public class ChunkEncoder extends Abstra
 
     @Override
     public String toString() {
-        final StringBuilder buffer = new StringBuilder();
-        buffer.append("[chunk-coded; completed: ");
-        buffer.append(isCompleted());
-        buffer.append("]");
-        return buffer.toString();
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[chunk-coded; completed: ");
+        sb.append(isCompleted());
+        sb.append("]");
+        return sb.toString();
     }
 
 }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java?rev=1545088&r1=1545087&r2=1545088&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java Sun Nov 24 22:21:39 2013
@@ -131,11 +131,11 @@ public class IdentityDecoder extends Abs
 
     @Override
     public String toString() {
-        final StringBuilder buffer = new StringBuilder();
-        buffer.append("[identity; completed: ");
-        buffer.append(this.completed);
-        buffer.append("]");
-        return buffer.toString();
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[identity; completed: ");
+        sb.append(this.completed);
+        sb.append("]");
+        return sb.toString();
     }
 
 }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityEncoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityEncoder.java?rev=1545088&r1=1545087&r2=1545088&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityEncoder.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityEncoder.java Sun Nov 24 22:21:39 2013
@@ -142,11 +142,11 @@ public class IdentityEncoder extends Abs
 
     @Override
     public String toString() {
-        final StringBuilder buffer = new StringBuilder();
-        buffer.append("[identity; completed: ");
-        buffer.append(isCompleted());
-        buffer.append("]");
-        return buffer.toString();
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[identity; completed: ");
+        sb.append(isCompleted());
+        sb.append("]");
+        return sb.toString();
     }
 
 }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java?rev=1545088&r1=1545087&r2=1545088&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedDecoder.java Sun Nov 24 22:21:39 2013
@@ -153,14 +153,14 @@ public class LengthDelimitedDecoder exte
 
     @Override
     public String toString() {
-        final StringBuilder buffer = new StringBuilder();
-        buffer.append("[content length: ");
-        buffer.append(this.contentLength);
-        buffer.append("; pos: ");
-        buffer.append(this.len);
-        buffer.append("; completed: ");
-        buffer.append(this.completed);
-        buffer.append("]");
-        return buffer.toString();
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[content length: ");
+        sb.append(this.contentLength);
+        sb.append("; pos: ");
+        sb.append(this.len);
+        sb.append("; completed: ");
+        sb.append(this.completed);
+        sb.append("]");
+        return sb.toString();
     }
 }

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedEncoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedEncoder.java?rev=1545088&r1=1545087&r2=1545088&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedEncoder.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/LengthDelimitedEncoder.java Sun Nov 24 22:21:39 2013
@@ -172,15 +172,15 @@ public class LengthDelimitedEncoder exte
 
     @Override
     public String toString() {
-        final StringBuilder buffer = new StringBuilder();
-        buffer.append("[content length: ");
-        buffer.append(this.contentLength);
-        buffer.append("; pos: ");
-        buffer.append(this.contentLength - this.remaining);
-        buffer.append("; completed: ");
-        buffer.append(isCompleted());
-        buffer.append("]");
-        return buffer.toString();
+        final StringBuilder sb = new StringBuilder();
+        sb.append("[content length: ");
+        sb.append(this.contentLength);
+        sb.append("; pos: ");
+        sb.append(this.contentLength - this.remaining);
+        sb.append("; completed: ");
+        sb.append(isCompleted());
+        sb.append("]");
+        return sb.toString();
     }
 
 }