hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1493738 - /httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/nio/util/ContentEncoderMock.java
Date Mon, 17 Jun 2013 12:36:13 GMT
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;



Mime
View raw message