Browse Source

Add Missing Return Statement in Snippet

Closes gh-13596
Closes gh-13595
galmegiz 2 years ago
parent
commit
8368c234a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

+ 2 - 1
docs/modules/ROOT/pages/servlet/authorization/architecture.adoc

@@ -253,10 +253,11 @@ Java::
 ----
 ----
 @Bean
 @Bean
 static RoleHierarchy roleHierarchy() {
 static RoleHierarchy roleHierarchy() {
-    var hierarchy = new RoleHierarchyImpl();
+    RoleHierarchyImpl hierarchy = new RoleHierarchyImpl();
     hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
     hierarchy.setHierarchy("ROLE_ADMIN > ROLE_STAFF\n" +
             "ROLE_STAFF > ROLE_USER\n" +
             "ROLE_STAFF > ROLE_USER\n" +
             "ROLE_USER > ROLE_GUEST");
             "ROLE_USER > ROLE_GUEST");
+    return hierarchy;
 }
 }
 
 
 // and, if using method security also add
 // and, if using method security also add