Skip to content

Commit 6d17a3a

Browse files
committed
spotless
1 parent ee7c9bc commit 6d17a3a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

libs/entitlement/qa/entitlement-test-plugin/src/main/java/org/elasticsearch/entitlement/qa/test/PathActions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ static void checkToRealPathForInvalidTarget() throws IOException {
3838
try {
3939
EntitledActions.pathToRealPath(invalidLink); // throws NoSuchFileException when checking entitlements due to invalid target
4040
} 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()))
4243
: "Expected NoSuchFileException to be thrown by entitlements check";
4344
throw e;
4445
}

libs/entitlement/src/main/java/org/elasticsearch/entitlement/initialization/EntitlementInitialization.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ private static PolicyCheckerImpl createPolicyChecker() {
132132
bootstrapArgs.suppressFailureLogClasses(),
133133
ENTITLEMENTS_MODULE,
134134
policyManager,
135-
bootstrapArgs.pathLookup());
135+
bootstrapArgs.pathLookup()
136+
);
136137
}
137138

138139
/**

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/PolicyCheckerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,14 @@ private static boolean isJarUrl(java.net.URL url) {
567567

568568
// We have to use class names for sun.net.www classes as java.base does not export them
569569
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"
572572
);
573573

574574
private static boolean isNetworkUrlConnection(java.net.URLConnection urlConnection) {
575575
var connectionClass = urlConnection.getClass();
576576
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());
578578
}
579579

580580
// We have to use class names for sun.net.www classes as java.base does not export them

0 commit comments

Comments
 (0)