Skip to content

Commit 8a52ca5

Browse files
committed
format
1 parent f926279 commit 8a52ca5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class AsyncHttpProviderUtils {
4545
public static final String HTTPS = "https";
4646
public static final String WEBSOCKET = "ws";
4747
public static final String WEBSOCKET_SSL = "wss";
48-
48+
4949
static final byte[] EMPTY_BYTE_ARRAY = "".getBytes();
5050

5151
public static final void validateSupportedScheme(Uri uri) {
@@ -96,8 +96,7 @@ public final static InputStream contentToInputStream(List<HttpResponseBodyPart>
9696
}
9797

9898
public final static boolean isSameHostAndProtocol(Uri uri1, Uri uri2) {
99-
return uri1.getScheme().equals(uri2.getScheme())
100-
&& uri1.getHost().equals(uri2.getHost())
99+
return uri1.getScheme().equals(uri2.getScheme()) && uri1.getHost().equals(uri2.getHost())
101100
&& getDefaultPort(uri1) == getDefaultPort(uri2);
102101
}
103102

@@ -187,7 +186,7 @@ public static StringBuilder urlEncodeFormParams0(List<Param> params) {
187186
sb.setLength(sb.length() - 1);
188187
return sb;
189188
}
190-
189+
191190
public static ByteBuffer urlEncodeFormParams(List<Param> params, Charset charset) {
192191
return StringUtils.charSequence2ByteBuffer(urlEncodeFormParams0(params), charset);
193192
}
@@ -200,10 +199,10 @@ private static void encodeAndAppendFormParam(final StringBuilder sb, final CharS
200199
}
201200
sb.append('&');
202201
}
203-
202+
204203
public static String getNTLM(List<String> authenticateHeaders) {
205204
if (MiscUtils.isNonEmpty(authenticateHeaders)) {
206-
for (String authenticateHeader: authenticateHeaders) {
205+
for (String authenticateHeader : authenticateHeaders) {
207206
if (authenticateHeader.startsWith("NTLM"))
208207
return authenticateHeader;
209208
}
@@ -226,5 +225,5 @@ public static boolean isSecure(Uri uri) {
226225

227226
public static boolean useProxyConnect(Uri uri) {
228227
return isSecure(uri) || isWebSocket(uri.getScheme());
229-
}
228+
}
230229
}

0 commit comments

Comments
 (0)