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 2021/03/14 15:44:39 UTC
[httpcomponents-client] branch master updated: Fixed typo for enum
name Postion to Position
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new d944951 Fixed typo for enum name Postion to Position
d944951 is described below
commit d94495131ab2411aa701ab5b41fb7b3a6e40a04d
Author: Sandeep Kulkarni <sa...@snk.local>
AuthorDate: Sun Mar 14 20:55:47 2021 +0530
Fixed typo for enum name Postion to Position
---
.../http/impl/async/H2AsyncClientBuilder.java | 52 +++++++++++-----------
.../http/impl/async/HttpAsyncClientBuilder.java | 52 +++++++++++-----------
.../http/impl/classic/HttpClientBuilder.java | 52 +++++++++++-----------
3 files changed, 78 insertions(+), 78 deletions(-)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
index fa3f0e0..693af2f 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
@@ -130,45 +130,45 @@ public class H2AsyncClientBuilder {
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final RequestInterceptorEntry.Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final RequestInterceptorEntry.Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final ResponseInterceptorEntry.Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final ResponseInterceptorEntry.Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final ExecInterceptorEntry.Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final AsyncExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final ExecInterceptorEntry.Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final AsyncExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -275,7 +275,7 @@ public class H2AsyncClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -287,7 +287,7 @@ public class H2AsyncClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -301,7 +301,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -315,7 +315,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -328,7 +328,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -341,7 +341,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -354,7 +354,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -366,7 +366,7 @@ public class H2AsyncClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -378,7 +378,7 @@ public class H2AsyncClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -631,14 +631,14 @@ public class H2AsyncClientBuilder {
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -658,14 +658,14 @@ public class H2AsyncClientBuilder {
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -738,7 +738,7 @@ public class H2AsyncClientBuilder {
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
index f5699c3..212bc57 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
@@ -159,45 +159,45 @@ public class HttpAsyncClientBuilder {
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final RequestInterceptorEntry.Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final RequestInterceptorEntry.Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final ResponseInterceptorEntry.Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final ResponseInterceptorEntry.Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final ExecInterceptorEntry.Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final AsyncExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final ExecInterceptorEntry.Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final AsyncExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -382,7 +382,7 @@ public class HttpAsyncClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -394,7 +394,7 @@ public class HttpAsyncClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -408,7 +408,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -422,7 +422,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -435,7 +435,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -448,7 +448,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -461,7 +461,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -473,7 +473,7 @@ public class HttpAsyncClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -485,7 +485,7 @@ public class HttpAsyncClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -781,14 +781,14 @@ public class HttpAsyncClientBuilder {
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -808,14 +808,14 @@ public class HttpAsyncClientBuilder {
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -945,7 +945,7 @@ public class HttpAsyncClientBuilder {
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;
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 2a6ad0e..77252dd 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
@@ -144,45 +144,45 @@ public class HttpClientBuilder {
private static class RequestInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final Postion postion;
+ final RequestInterceptorEntry.Position position;
final HttpRequestInterceptor interceptor;
- private RequestInterceptorEntry(final Postion postion, final HttpRequestInterceptor interceptor) {
- this.postion = postion;
+ private RequestInterceptorEntry(final RequestInterceptorEntry.Position position, final HttpRequestInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ResponseInterceptorEntry {
- enum Postion { FIRST, LAST }
+ enum Position { FIRST, LAST }
- final Postion postion;
+ final ResponseInterceptorEntry.Position position;
final HttpResponseInterceptor interceptor;
- private ResponseInterceptorEntry(final Postion postion, final HttpResponseInterceptor interceptor) {
- this.postion = postion;
+ private ResponseInterceptorEntry(final ResponseInterceptorEntry.Position position, final HttpResponseInterceptor interceptor) {
+ this.position = position;
this.interceptor = interceptor;
}
}
private static class ExecInterceptorEntry {
- enum Postion { BEFORE, AFTER, REPLACE, FIRST, LAST }
+ enum Position { BEFORE, AFTER, REPLACE, FIRST, LAST }
- final Postion postion;
+ final ExecInterceptorEntry.Position position;
final String name;
final ExecChainHandler interceptor;
final String existing;
private ExecInterceptorEntry(
- final Postion postion,
+ final ExecInterceptorEntry.Position position,
final String name,
final ExecChainHandler interceptor,
final String existing) {
- this.postion = postion;
+ this.position = position;
this.name = name;
this.interceptor = interceptor;
this.existing = existing;
@@ -369,7 +369,7 @@ public class HttpClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.FIRST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -381,7 +381,7 @@ public class HttpClientBuilder {
if (responseInterceptors == null) {
responseInterceptors = new LinkedList<>();
}
- responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Postion.LAST, interceptor));
+ responseInterceptors.add(new ResponseInterceptorEntry(ResponseInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -393,7 +393,7 @@ public class HttpClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.FIRST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.FIRST, interceptor));
return this;
}
@@ -405,7 +405,7 @@ public class HttpClientBuilder {
if (requestInterceptors == null) {
requestInterceptors = new LinkedList<>();
}
- requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Postion.LAST, interceptor));
+ requestInterceptors.add(new RequestInterceptorEntry(RequestInterceptorEntry.Position.LAST, interceptor));
return this;
}
@@ -419,7 +419,7 @@ public class HttpClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.BEFORE, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.BEFORE, name, interceptor, existing));
return this;
}
@@ -433,7 +433,7 @@ public class HttpClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.AFTER, name, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.AFTER, name, interceptor, existing));
return this;
}
@@ -446,7 +446,7 @@ public class HttpClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.REPLACE, existing, interceptor, existing));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.REPLACE, existing, interceptor, existing));
return this;
}
@@ -459,7 +459,7 @@ public class HttpClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.FIRST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.FIRST, name, interceptor, null));
return this;
}
@@ -472,7 +472,7 @@ public class HttpClientBuilder {
if (execInterceptors == null) {
execInterceptors = new LinkedList<>();
}
- execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Postion.LAST, name, interceptor, null));
+ execInterceptors.add(new ExecInterceptorEntry(ExecInterceptorEntry.Position.LAST, name, interceptor, null));
return this;
}
@@ -807,14 +807,14 @@ public class HttpClientBuilder {
final HttpProcessorBuilder b = HttpProcessorBuilder.create();
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.FIRST) {
+ if (entry.position == RequestInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.FIRST) {
+ if (entry.position == ResponseInterceptorEntry.Position.FIRST) {
b.addFirst(entry.interceptor);
}
}
@@ -837,14 +837,14 @@ public class HttpClientBuilder {
}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
- if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
+ if (entry.position == RequestInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
- if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
+ if (entry.position == ResponseInterceptorEntry.Position.LAST) {
b.addLast(entry.interceptor);
}
}
@@ -916,7 +916,7 @@ public class HttpClientBuilder {
if (execInterceptors != null) {
for (final ExecInterceptorEntry entry: execInterceptors) {
- switch (entry.postion) {
+ switch (entry.position) {
case AFTER:
execChainDefinition.addAfter(entry.existing, entry.interceptor, entry.name);
break;