Skip to content

Commit 75291e6

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 04eb46b commit 75291e6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,8 @@ private ModuleEntitlements computeEntitlements(Class<?> requestingClass) {
642642
}
643643
default -> {
644644
// Must be a plugin
645-
assert componentName.startsWith("(") == false: "Parentheses indicate a special component name that isn't a plugin: " + componentName;
645+
assert componentName.startsWith("(") == false
646+
: "Parentheses indicate a special component name that isn't a plugin: " + componentName;
646647
var pluginEntitlements = pluginsEntitlements.get(componentName);
647648
if (pluginEntitlements == null) {
648649
return defaultEntitlements(componentName, sourcePaths.get(componentName), moduleName);

libs/entitlement/src/test/java/org/elasticsearch/entitlement/runtime/policy/PolicyManagerTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,7 @@ public void testGetEntitlementsReturnsDefaultOnMissingPolicyForServer() throws C
227227
);
228228

229229
assertEquals(
230-
Map.of(
231-
requestingModule,
232-
policyManager.defaultEntitlements(SERVER_COMPONENT_NAME, mockServerSourcePath, httpserverModuleName)
233-
),
230+
Map.of(requestingModule, policyManager.defaultEntitlements(SERVER_COMPONENT_NAME, mockServerSourcePath, httpserverModuleName)),
234231
policyManager.moduleEntitlementsMap
235232
);
236233
}

0 commit comments

Comments
 (0)