Fix typo in interceptor methods names

Signed-off-by: Neonailol <neonailol@gmail.com>
This commit is contained in:
Neonailol 2019-06-25 23:42:49 +03:00 committed by Oleg Kalnichevski
parent 8603a61b55
commit 9e6287c88b
2 changed files with 4 additions and 4 deletions

View File

@ -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<>();

View File

@ -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<>();