6565 */
6666public class ClientHttpConnectorFactory {
6767
68- private static final boolean REACTOR_NETTY_PRESENT = ClassUtils .isPresent ("reactor.netty.http.client.HttpClient" ,
68+ private static final boolean reactorNettyPresent = ClassUtils .isPresent ("reactor.netty.http.client.HttpClient" ,
6969 ClientHttpConnectorFactory .class .getClassLoader ());
7070
71- private static final boolean HTTP_COMPONENTS_PRESENT = ClassUtils .isPresent ("org.apache.hc.client5.http.impl.async" ,
71+ private static final boolean httpComponentsPresent = ClassUtils .isPresent ("org.apache.hc.client5.http.impl.async" ,
7272 ClientHttpConnectorFactory .class .getClassLoader ());
7373
74- private static final boolean JETTY_PRESENT = ClassUtils .isPresent ("org.eclipse.jetty.client.HttpClient" ,
74+ private static final boolean jettyPresent = ClassUtils .isPresent ("org.eclipse.jetty.client.HttpClient" ,
7575 ClientHttpConnectorFactory .class .getClassLoader ());
7676
7777 /**
@@ -87,16 +87,16 @@ public static ClientHttpConnector create(ClientOptions options, SslConfiguration
8787 Assert .notNull (sslConfiguration , "SslConfiguration must not be null" );
8888
8989 try {
90- if (REACTOR_NETTY_PRESENT ) {
90+ if (reactorNettyPresent ) {
9191 return ReactorNetty .usingReactorNetty (options , sslConfiguration );
9292 }
9393
94- if (HTTP_COMPONENTS_PRESENT ) {
94+ if (httpComponentsPresent ) {
9595 return HttpComponents .usingHttpComponents (options , sslConfiguration );
9696
9797 }
9898
99- if (JETTY_PRESENT ) {
99+ if (jettyPresent ) {
100100 return JettyClient .usingJetty (options , sslConfiguration );
101101 }
102102
0 commit comments