hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject httpcomponents-core git commit: [HTTPCORE-504] Update DefaultHttpClientIODispatch constructor to type for subclasses of DefaultNHttpClientConnection (like DefaultHttpServerIODispatch.)
Date Sat, 06 Jan 2018 18:52:29 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/4.4.x 599975537 -> 688b53d03


[HTTPCORE-504] Update DefaultHttpClientIODispatch constructor to type
for subclasses of DefaultNHttpClientConnection (like
DefaultHttpServerIODispatch.)

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

Branch: refs/heads/4.4.x
Commit: 688b53d03e52a62f5e9f6a57c6a2eb6301b076f1
Parents: 5999755
Author: Gary Gregory <ggregory@apache.org>
Authored: Sat Jan 6 11:52:26 2018 -0700
Committer: Gary Gregory <ggregory@apache.org>
Committed: Sat Jan 6 11:52:26 2018 -0700

----------------------------------------------------------------------
 RELEASE_NOTES.txt                                                | 3 +++
 .../org/apache/http/impl/nio/DefaultHttpClientIODispatch.java    | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/688b53d0/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 2153563..316a6ef 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -21,6 +21,9 @@ Changelog
 * HTTPCORE-502: Add APIs to DefaultHttpServerIODispatch to get its connection factory and
handler.
   Contributed by Gary Gregory <ggregory at apache.org>
 
+* HTTPCORE-504: Update DefaultHttpClientIODispatch constructor to type for subclasses of
DefaultNHttpClientConnection (like DefaultHttpServerIODispatch.)
+  Contributed by Gary Gregory <ggregory at apache.org>
+
 
 Release 4.4.8
 -------------------

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/688b53d0/httpcore-nio/src/main/java/org/apache/http/impl/nio/DefaultHttpClientIODispatch.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/DefaultHttpClientIODispatch.java
b/httpcore-nio/src/main/java/org/apache/http/impl/nio/DefaultHttpClientIODispatch.java
index 44935b0..9a8e8e5 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/DefaultHttpClientIODispatch.java
+++ b/httpcore-nio/src/main/java/org/apache/http/impl/nio/DefaultHttpClientIODispatch.java
@@ -91,7 +91,7 @@ public class DefaultHttpClientIODispatch
     }
 
     private final NHttpClientEventHandler handler;
-    private final NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory;
+    private final NHttpConnectionFactory<? extends DefaultNHttpClientConnection> connFactory;
 
     /**
      * Creates a new instance of this class to be used for dispatching I/O event
@@ -102,7 +102,7 @@ public class DefaultHttpClientIODispatch
      */
     public DefaultHttpClientIODispatch(
             final NHttpClientEventHandler handler,
-            final NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory)
{
+            final NHttpConnectionFactory<? extends DefaultNHttpClientConnection> connFactory)
{
         super();
         this.handler = Args.notNull(handler, "HTTP client handler");
         this.connFactory = Args.notNull(connFactory, "HTTP client connection factory");


Mime
View raw message