objectcomputing / check-ins

Other
7 stars 7 forks source link

Simplify the logic in PermissionSecurityRule #2428

Closed timyates closed 1 month ago

timyates commented 1 month ago

Using instanceof template variables, RouteMatch#findAnnotation and Streams with flatMap we can simplify the logic in the PermissionSecurityRule.

The test had to be updated to mock findAnnotation instead of getAnnotation