Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Mar 6, 2023
1 parent eb26189 commit 6b3d3ab
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import io.fabric8.kubernetes.client.http.HttpRequest;
import io.fabric8.kubernetes.client.http.Interceptor;
import io.fabric8.kubernetes.client.internal.SSLUtils;
import java.util.HashSet;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -32,14 +30,14 @@
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.ServiceLoader;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -150,7 +148,7 @@ public static HttpClient.Factory getHttpClientFactory() {
LOGGER.info("Using httpclient {} factory", factory.getClass().getName());
return factory;
}

private static HttpClient.Factory getFactory(ServiceLoader<HttpClient.Factory> loader) {
HttpClient.Factory selected = null;
Set<String> detectedFactories = new HashSet<>();
Expand All @@ -172,7 +170,8 @@ private static HttpClient.Factory getFactory(ServiceLoader<HttpClient.Factory> l
selected = candidate;
selectedPriorityCardinality = 0;
samePriority.clear();
LOGGER.debug("Temporarily selected {} as httpclient factory, replacing a default factory or one with lower priority", candidateClassName);
LOGGER.debug("Temporarily selected {} as httpclient factory, replacing a default factory or one with lower priority",
candidateClassName);
} else {
LOGGER.debug("Ignoring {} httpclient factory as it doesn't supersede currently selected one", candidateClassName);
}
Expand All @@ -188,7 +187,7 @@ private static HttpClient.Factory getFactory(ServiceLoader<HttpClient.Factory> l
LOGGER.warn("The following httpclient factories were detected on your classpath: {}, "
+ "{} of which had the same priority ({}) so one was chosen randomly. "
+ "You should exclude dependencies that aren't needed or use an explicit association of the HttpClient.Factory.",
detectedFactories, samePriority.size(), samePriority);
detectedFactories, samePriority.size(), samePriority);
}
return selected;
}
Expand Down

0 comments on commit 6b3d3ab

Please sign in to comment.