From 9e6287c88b4479f4375970b262358ca2a25ec264 Mon Sep 17 00:00:00 2001 From: Neonailol Date: Tue, 25 Jun 2019 23:42:49 +0300 Subject: [PATCH] Fix typo in interceptor methods names Signed-off-by: Neonailol --- .../hc/client5/http/impl/async/Http2AsyncClientBuilder.java | 4 ++-- .../hc/client5/http/impl/classic/HttpClientBuilder.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/Http2AsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/Http2AsyncClientBuilder.java index 44112f603..ed38cfe89 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/Http2AsyncClientBuilder.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/Http2AsyncClientBuilder.java @@ -272,7 +272,7 @@ public class Http2AsyncClientBuilder { /** * Adds this protocol interceptor to the head of the protocol processing list. */ - public final Http2AsyncClientBuilder addRequestInterceptorFirst(final HttpResponseInterceptor interceptor) { + public final Http2AsyncClientBuilder addResponseInterceptorFirst(final HttpResponseInterceptor interceptor) { Args.notNull(interceptor, "Interceptor"); if (responseInterceptors == null) { responseInterceptors = new LinkedList<>(); @@ -369,7 +369,7 @@ public class Http2AsyncClientBuilder { /** * Adds this protocol interceptor to the tail of the protocol processing list. */ - public final Http2AsyncClientBuilder addResponseInterceptorLast(final HttpRequestInterceptor interceptor) { + public final Http2AsyncClientBuilder addRequestInterceptorLast(final HttpRequestInterceptor interceptor) { Args.notNull(interceptor, "Interceptor"); if (requestInterceptors == null) { requestInterceptors = new LinkedList<>(); diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java index 983078faa..cae1e0f89 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/HttpClientBuilder.java @@ -364,7 +364,7 @@ public class HttpClientBuilder { /** * Adds this protocol interceptor to the head of the protocol processing list. */ - public final HttpClientBuilder addRequestInterceptorFirst(final HttpResponseInterceptor interceptor) { + public final HttpClientBuilder addResponseInterceptorFirst(final HttpResponseInterceptor interceptor) { Args.notNull(interceptor, "Interceptor"); if (responseInterceptors == null) { responseInterceptors = new LinkedList<>(); @@ -400,7 +400,7 @@ public class HttpClientBuilder { /** * Adds this protocol interceptor to the tail of the protocol processing list. */ - public final HttpClientBuilder addResponseInterceptorLast(final HttpRequestInterceptor interceptor) { + public final HttpClientBuilder addRequestInterceptorLast(final HttpRequestInterceptor interceptor) { Args.notNull(interceptor, "Interceptor"); if (requestInterceptors == null) { requestInterceptors = new LinkedList<>();