Skip to content

Commit 2b83446

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 21b1748 commit 2b83446

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/bootstrap/HardcodedEntitlements.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,17 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
115115
)
116116
),
117117
new Scope("java.desktop", List.of(new LoadNativeLibrariesEntitlement())),
118-
new Scope("java.xml", List.of(
119-
new ReadJdkImageEntitlement(),
120-
// java.xml does some reflective stuff that reads calling jars, so allow reading the codebases
121-
// of any code in the system so that they can all use java.xml
122-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(LIB, READ))),
123-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(MODULES, READ))),
124-
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(PLUGINS, READ))))),
118+
new Scope(
119+
"java.xml",
120+
List.of(
121+
new ReadJdkImageEntitlement(),
122+
// java.xml does some reflective stuff that reads calling jars, so allow reading the codebases
123+
// of any code in the system so that they can all use java.xml
124+
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(LIB, READ))),
125+
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(MODULES, READ))),
126+
new FilesEntitlement(List.of(FilesEntitlement.FileData.ofBaseDirPath(PLUGINS, READ)))
127+
)
128+
),
125129
new Scope("org.apache.httpcomponents.httpclient", List.of(new OutboundNetworkEntitlement())),
126130
new Scope(
127131
"org.apache.lucene.core",

0 commit comments

Comments
 (0)