diff --git a/java-client/src/test/java/org/opensearch/client/transport/aws/AwsSdk2TransportTests.java b/java-client/src/test/java/org/opensearch/client/transport/aws/AwsSdk2TransportTests.java index 41053486ee..c505bca935 100644 --- a/java-client/src/test/java/org/opensearch/client/transport/aws/AwsSdk2TransportTests.java +++ b/java-client/src/test/java/org/opensearch/client/transport/aws/AwsSdk2TransportTests.java @@ -28,6 +28,7 @@ import java.util.List; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.stream.Collectors; +import javax.net.ssl.SSLContext; import org.apache.hc.core5.function.Supplier; import org.apache.hc.core5.http.HttpRequest; import org.apache.hc.core5.http.ProtocolException; @@ -61,8 +62,6 @@ import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.utils.AttributeMap; -import javax.net.ssl.SSLContext; - @RunWith(Parameterized.class) public class AwsSdk2TransportTests { private static final Region TEST_REGION = Region.AP_SOUTHEAST_2; diff --git a/java-client/src/test/java/org/opensearch/client/transport/util/GeneratedCertificateSSLContext.java b/java-client/src/test/java/org/opensearch/client/transport/util/GeneratedCertificateSSLContext.java index f79e4a72d5..6fca9a39ad 100644 --- a/java-client/src/test/java/org/opensearch/client/transport/util/GeneratedCertificateSSLContext.java +++ b/java-client/src/test/java/org/opensearch/client/transport/util/GeneratedCertificateSSLContext.java @@ -241,7 +241,7 @@ private static Function findCtor(Class clazz, Class var handle = MethodHandles.lookup().findConstructor(clazz, MethodType.methodType(void.class, aType)); return (a) -> { try { - //noinspection unchecked + // noinspection unchecked return (This) handle.invoke(a); } catch (Throwable e) { throw new RuntimeException(e); @@ -260,7 +260,7 @@ private static TriFunction findStaticMethod( var handle = MethodHandles.lookup().findStatic(clazz, name, MethodType.methodType(rType, aType, bType, cType)); return (a, b, c) -> { try { - //noinspection unchecked + // noinspection unchecked return (Return) handle.invoke(a, b, c); } catch (Throwable e) { throw new RuntimeException(e);