diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java index 14b86bf0f22..77d4d9206c1 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java @@ -78,23 +78,26 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer } /** - *

Customizes the request attributes to be set for SSL requests.

- *

The requirements of the Servlet specs are:

+ *

+ * Customizes the request attributes to be set for SSL requests. + *

+ *

+ * The requirements of the Servlet specs are: + *

* - * - * @param request HttpRequest to be customized. + * + * @param sslEngine + * the sslEngine to be customized. + * @param request + * HttpRequest to be customized. */ public void customize(SSLEngine sslEngine, Request request) { @@ -104,7 +107,6 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer if (_sniHostCheck) { String name = request.getServerName(); - @SuppressWarnings("unchecked") X509 x509 = (X509)sslSession.getValue(SniX509ExtendedKeyManager.SNI_X509); if (x509!=null && !x509.matches(name))