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 2019/12/11 11:12:26 UTC

[httpcomponents-core] 02/03: Removed unused InterruptedException from method signatures (no functional changes)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit f53f6262320b4e6e7d66f5a5d667d3cb2812e050
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Dec 11 12:00:59 2019 +0100

    Removed unused InterruptedException from method signatures (no functional changes)
---
 .../src/main/java/org/apache/hc/core5/testing/nio/H2TestClient.java | 6 +++---
 .../main/java/org/apache/hc/core5/testing/nio/Http1TestClient.java  | 6 +++---
 .../org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/H2TestClient.java b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/H2TestClient.java
index 7ac64c8..2e62caf 100644
--- a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/H2TestClient.java
+++ b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/H2TestClient.java
@@ -127,7 +127,7 @@ public class H2TestClient extends AsyncRequester {
     public Future<ClientSessionEndpoint> connect(
             final HttpHost host,
             final Timeout timeout,
-            final FutureCallback<ClientSessionEndpoint> callback) throws InterruptedException {
+            final FutureCallback<ClientSessionEndpoint> callback) {
         final BasicFuture<ClientSessionEndpoint> future = new BasicFuture<>(callback);
         requestSession(host, timeout, new FutureCallback<IOSession>() {
 
@@ -149,11 +149,11 @@ public class H2TestClient extends AsyncRequester {
         return future;
     }
 
-    public Future<ClientSessionEndpoint> connect(final HttpHost host,final Timeout timeout) throws InterruptedException {
+    public Future<ClientSessionEndpoint> connect(final HttpHost host,final Timeout timeout) {
         return connect(host, timeout, null);
     }
 
-    public Future<ClientSessionEndpoint> connect(final String hostname, final int port, final Timeout timeout) throws InterruptedException {
+    public Future<ClientSessionEndpoint> connect(final String hostname, final int port, final Timeout timeout) {
         return connect(new HttpHost(hostname, port), timeout, null);
     }
 
diff --git a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/Http1TestClient.java b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/Http1TestClient.java
index 6b6180f..a8e7fad 100644
--- a/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/Http1TestClient.java
+++ b/httpcore5-testing/src/main/java/org/apache/hc/core5/testing/nio/Http1TestClient.java
@@ -91,7 +91,7 @@ public class Http1TestClient extends AsyncRequester  {
     public Future<ClientSessionEndpoint> connect(
             final HttpHost host,
             final Timeout timeout,
-            final FutureCallback<ClientSessionEndpoint> callback) throws InterruptedException {
+            final FutureCallback<ClientSessionEndpoint> callback) {
         final BasicFuture<ClientSessionEndpoint> future = new BasicFuture<>(callback);
         requestSession(host, timeout, new FutureCallback<IOSession>() {
 
@@ -113,11 +113,11 @@ public class Http1TestClient extends AsyncRequester  {
         return future;
     }
 
-    public Future<ClientSessionEndpoint> connect(final HttpHost host, final Timeout timeout) throws InterruptedException {
+    public Future<ClientSessionEndpoint> connect(final HttpHost host, final Timeout timeout) {
         return connect(host, timeout, null);
     }
 
-    public Future<ClientSessionEndpoint> connect(final String hostname, final int port, final Timeout timeout) throws InterruptedException {
+    public Future<ClientSessionEndpoint> connect(final String hostname, final int port, final Timeout timeout) {
         return connect(new HttpHost(hostname, port), timeout, null);
     }
 
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
index c6eb91a..952899b 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
@@ -234,7 +234,7 @@ public class HttpAsyncRequester extends AsyncRequester implements ConnPoolContro
         return resultFuture;
     }
 
-    public Future<AsyncClientEndpoint> connect(final HttpHost host, final Timeout timeout) throws InterruptedException {
+    public Future<AsyncClientEndpoint> connect(final HttpHost host, final Timeout timeout) {
         return connect(host, timeout, null, null);
     }