hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1493848 - in /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs: ChunkEncoder.java LengthDelimitedEncoder.java
Date Mon, 17 Jun 2013 17:07:21 GMT
Author: sebb
Date: Mon Jun 17 17:07:21 2013
New Revision: 1493848

URL: http://svn.apache.org/r1493848
Log:
Use the setter method - complete() - rather than direct access

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/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=1493848&r1=1493847&r2=1493848&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
Mon Jun 17 17:07:21 2013
@@ -143,7 +143,7 @@ public class ChunkEncoder extends Abstra
         this.buffer.writeLine(this.lineBuffer);
         this.lineBuffer.clear();
         this.buffer.writeLine(this.lineBuffer);
-        this.completed = true; // == super.complete()
+        super.complete();
     }
 
     @Override

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=1493848&r1=1493847&r2=1493848&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
Mon Jun 17 17:07:21 2013
@@ -138,7 +138,7 @@ public class LengthDelimitedEncoder exte
             }
         }
         if (this.remaining <= 0) {
-            this.completed = true; // == super.complete()
+            super.complete();
         }
         return total;
     }
@@ -165,7 +165,7 @@ public class LengthDelimitedEncoder exte
         }
         this.remaining -= bytesWritten;
         if (this.remaining <= 0) {
-            this.completed = true; // == super.complete()
+            super.complete();
         }
         return bytesWritten;
     }



Mime
View raw message