File tree 1 file changed +3
-3
lines changed
libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -567,14 +567,14 @@ private static boolean isJarUrl(java.net.URL url) {
567
567
568
568
// We have to use class names for sun.net.www classes as java.base does not export them
569
569
private static final List <String > ADDITIONAL_NETWORK_URL_CONNECT_CLASS_NAMES = List .of (
570
- "sun.net.www.protocol.ftp.FtpURLConnection" ,
571
- "sun.net.www.protocol.mailto.MailToURLConnection"
570
+ "sun.net.www.protocol.ftp.FtpURLConnection" ,
571
+ "sun.net.www.protocol.mailto.MailToURLConnection"
572
572
);
573
573
574
574
private static boolean isNetworkUrlConnection (java .net .URLConnection urlConnection ) {
575
575
var connectionClass = urlConnection .getClass ();
576
576
return HttpURLConnection .class .isAssignableFrom (connectionClass )
577
- || ADDITIONAL_NETWORK_URL_CONNECT_CLASS_NAMES .contains (connectionClass .getName ());
577
+ || ADDITIONAL_NETWORK_URL_CONNECT_CLASS_NAMES .contains (connectionClass .getName ());
578
578
}
579
579
580
580
// We have to use class names for sun.net.www classes as java.base does not export them
You can’t perform that action at this time.
0 commit comments