File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
qa/entitlement-test-plugin/src/main/java/org/elasticsearch/entitlement/qa/test
src/main/java/org/elasticsearch/entitlement Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ static void checkToRealPathForInvalidTarget() throws IOException {
38
38
try {
39
39
EntitledActions .pathToRealPath (invalidLink ); // throws NoSuchFileException when checking entitlements due to invalid target
40
40
} catch (NoSuchFileException e ) {
41
- assert Arrays .stream (e .getStackTrace ()).anyMatch (t -> Objects .equals (t .getModuleName (), PolicyChecker .class .getModule ().getName ()))
41
+ assert Arrays .stream (e .getStackTrace ())
42
+ .anyMatch (t -> Objects .equals (t .getModuleName (), PolicyChecker .class .getModule ().getName ()))
42
43
: "Expected NoSuchFileException to be thrown by entitlements check" ;
43
44
throw e ;
44
45
}
Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ private static PolicyCheckerImpl createPolicyChecker() {
132
132
bootstrapArgs .suppressFailureLogClasses (),
133
133
ENTITLEMENTS_MODULE ,
134
134
policyManager ,
135
- bootstrapArgs .pathLookup ());
135
+ bootstrapArgs .pathLookup ()
136
+ );
136
137
}
137
138
138
139
/**
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