hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1493847 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java
Date Mon, 17 Jun 2013 17:05:26 GMT
Author: sebb
Date: Mon Jun 17 17:05:26 2013
New Revision: 1493847

URL: http://svn.apache.org/r1493847
Log:
Deprecate the completed flag so accidental external access is detected

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java?rev=1493847&r1=1493846&r2=1493847&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/AbstractContentEncoder.java
Mon Jun 17 17:05:26 2013
@@ -51,7 +51,12 @@ public abstract class AbstractContentEnc
     protected final SessionOutputBuffer buffer;
     protected final HttpTransportMetricsImpl metrics;
 
-    protected boolean completed; // TODO this should be private; it has getter/setter
+    /**
+     * @deprecated since 4.3-beta3 - use {@link #isCompleted()} or {@link #complete()} instead
+     * Will probably be made private at some point.
+     */
+    @Deprecated
+    protected boolean completed;
 
     /**
      * Creates an instance of this class.



Mime
View raw message