You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/09/28 21:21:38 UTC

[2/3] httpcomponents-core git commit: Make org.apache.http.nio.protocol.ErrorResponseProducer public.

Make org.apache.http.nio.protocol.ErrorResponseProducer public.


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/b7e97143
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/b7e97143
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/b7e97143

Branch: refs/heads/4.4.x
Commit: b7e9714308dadb2e414783bed58db2e6271d07cb
Parents: 2491e66
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Sep 28 10:43:51 2017 -0600
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu Sep 28 23:16:56 2017 +0200

----------------------------------------------------------------------
 .../org/apache/http/nio/protocol/ErrorResponseProducer.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/b7e97143/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
index b192277..6a2df67 100644
--- a/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
+++ b/httpcore-nio/src/main/java/org/apache/http/nio/protocol/ErrorResponseProducer.java
@@ -38,14 +38,19 @@ import org.apache.http.nio.entity.HttpAsyncContentProducer;
 import org.apache.http.protocol.HTTP;
 import org.apache.http.protocol.HttpContext;
 
-class ErrorResponseProducer implements HttpAsyncResponseProducer {
+/**
+ * This class changed from package private to public in version 4.4.8.
+ *
+ * @since 4.4.8
+ */
+public class ErrorResponseProducer implements HttpAsyncResponseProducer {
 
     private final HttpResponse response;
     private final HttpEntity entity;
     private final HttpAsyncContentProducer contentProducer;
     private final boolean keepAlive;
 
-    ErrorResponseProducer(
+    public ErrorResponseProducer(
             final HttpResponse response,
             final HttpEntity entity,
             final boolean keepAlive) {