diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTCredentials.java b/httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTCredentials.java index e9698bba7..7c56c80ad 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTCredentials.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTCredentials.java @@ -186,7 +186,7 @@ public class NTCredentials implements Credentials, Serializable { if (value == null) { return null; } - final int index = value.indexOf("."); + final int index = value.indexOf('.'); if (index != -1) { return value.substring(0, index); } diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncPushConsumerRegistry.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncPushConsumerRegistry.java index 670486973..f5b803566 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncPushConsumerRegistry.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncPushConsumerRegistry.java @@ -69,7 +69,7 @@ class AsyncPushConsumerRegistry { return null; } String path = request.getPath(); - final int i = path.indexOf("?"); + final int i = path.indexOf('?'); if (i != -1) { path = path.substring(0, i); }