Skip to content

Commit 9494ef4

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 809df1b commit 9494ef4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements/FilesEntitlement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ public static FilesEntitlement build(List<Object> paths) {
232232
int foundKeys = (pathAsString != null ? 1 : 0) + (relativePathAsString != null ? 1 : 0) + (pathSetting != null ? 1 : 0)
233233
+ (relativePathSetting != null ? 1 : 0);
234234
if (foundKeys != 1) {
235-
throw new PolicyValidationException("a files entitlement entry must contain one of " +
236-
"[path, relative_path, path_setting, relative_path_setting]"
235+
throw new PolicyValidationException(
236+
"a files entitlement entry must contain one of " + "[path, relative_path, path_setting, relative_path_setting]"
237237
);
238238
}
239239

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ public void testEntitlementMutuallyExclusiveParameters() {
103103
""".getBytes(StandardCharsets.UTF_8)), "test-failure-policy.yaml", false).parsePolicy());
104104
assertEquals(
105105
"[2:5] policy parsing error for [test-failure-policy.yaml] in scope [entitlement-module-name] "
106-
+ "for entitlement type [files]: a files entitlement entry must contain one of " +
107-
"[path, relative_path, path_setting, relative_path_setting]",
106+
+ "for entitlement type [files]: a files entitlement entry must contain one of "
107+
+ "[path, relative_path, path_setting, relative_path_setting]",
108108
ppe.getMessage()
109109
);
110110
}
@@ -117,8 +117,8 @@ public void testEntitlementAtLeastOneParameter() {
117117
""".getBytes(StandardCharsets.UTF_8)), "test-failure-policy.yaml", false).parsePolicy());
118118
assertEquals(
119119
"[2:5] policy parsing error for [test-failure-policy.yaml] in scope [entitlement-module-name] "
120-
+ "for entitlement type [files]: a files entitlement entry must contain one of " +
121-
"[path, relative_path, path_setting, relative_path_setting]",
120+
+ "for entitlement type [files]: a files entitlement entry must contain one of "
121+
+ "[path, relative_path, path_setting, relative_path_setting]",
122122
ppe.getMessage()
123123
);
124124
}

0 commit comments

Comments
 (0)