File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
test/framework/src/main/java/org/elasticsearch/entitlement/runtime/policy Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments