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/06/17 14:36:13 UTC

svn commit: r1493738 - /httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java

Author: sebb
Date: Mon Jun 17 12:36:13 2013
New Revision: 1493738

URL: http://svn.apache.org/r1493738
Log:
Remove overrides that duplicate superclass

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java?rev=1493738&r1=1493737&r2=1493738&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java Mon Jun 17 12:36:13 2013
@@ -38,9 +38,6 @@ import org.apache.http.util.Asserts;
 
 public class ContentEncoderMock extends AbstractContentEncoder {
 
-    // TODO? remove this field and the complete() and isCompleted() methods
-    private boolean completed;
-
     public ContentEncoderMock(
             final WritableByteChannel channel,
             final SessionOutputBuffer buffer,
@@ -48,16 +45,6 @@ public class ContentEncoderMock extends 
         super(channel, buffer, metrics);
     }
 
-    @Override
-    public boolean isCompleted() {
-        return this.completed;
-    }
-
-    @Override
-    public void complete() throws IOException {
-        this.completed = true;
-    }
-
     public int write(final ByteBuffer src) throws IOException {
         if (src == null) {
             return 0;