Skip to content

Commit c400748

Browse files
committed
Revert "[CI] Auto commit changes from spotless"
This reverts commit d301ede.
1 parent fcd1dd0 commit c400748

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/framework/src/main/java/org/elasticsearch/entitlement/runtime/policy/TestPolicyManager.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ boolean isTriviallyAllowed(Class<?> requestingClass) {
117117
if (isTriviallyAllowingTestCode && isTestCode(requestingClass)) {
118118
return true;
119119
}
120-
if (super.isTriviallyAllowed(requestingClass)) {
120+
if(super.isTriviallyAllowed(requestingClass)){
121121
return true;
122-
}
123-
;
122+
};
124123
return isStackWithoutEntitlements();
125124
}
126125

@@ -135,11 +134,10 @@ private static boolean hasWithoutEntitlements(Class<?> clazz) {
135134

136135
private static boolean isStackWithoutEntitlements() {
137136
return StackWalker.getInstance(RETAIN_CLASS_REFERENCE)
138-
.walk(
139-
frames -> frames.map(StackWalker.StackFrame::getDeclaringClass)
140-
.filter(c -> isEntitlementClass(c) == false)
141-
.anyMatch(TestPolicyManager::hasWithoutEntitlements)
142-
);
137+
.walk(frames -> frames
138+
.map(StackWalker.StackFrame::getDeclaringClass)
139+
.filter(c -> isEntitlementClass(c) == false)
140+
.anyMatch(TestPolicyManager::hasWithoutEntitlements));
143141
}
144142

145143
private static boolean isEntitlementClass(Class<?> requestingClass) {

0 commit comments

Comments
 (0)