Pārlūkot izejas kodu

Removed unnecessary braces from annotations

Luke Taylor 17 gadi atpakaļ
vecāks
revīzija
9372f6175b

+ 3 - 3
core-tiger/src/test/java/org/springframework/security/annotation/Jsr250BusinessServiceImpl.java

@@ -12,11 +12,11 @@ import javax.annotation.security.PermitAll;
 @PermitAll
 public class Jsr250BusinessServiceImpl implements BusinessService {
 
-    @RolesAllowed({"ROLE_USER"})
+    @RolesAllowed("ROLE_USER")
     public void someUserMethod1() {
     }
 
-    @RolesAllowed({"ROLE_USER"})
+    @RolesAllowed("ROLE_USER")
     public void someUserMethod2() {
     }
 
@@ -24,7 +24,7 @@ public class Jsr250BusinessServiceImpl implements BusinessService {
     public void someUserAndAdminMethod() {
     }
 
-    @RolesAllowed({"ROLE_ADMIN"})
+    @RolesAllowed("ROLE_ADMIN")
     public void someAdminMethod() {
     }