steinarb commented on code in PR #2772:
URL: https://github.com/apache/shiro/pull/2772#discussion_r3421875763


##########
integration-tests/jakarta-ee/src/main/java/org/apache/shiro/testing/jakarta/ee/PropertyRealm.java:
##########
@@ -56,11 +56,11 @@ protected void processUserDefinitions(Map<String, String> 
userDefs) {
 
             SimpleAccount account = getUser(username);
             if (account == null) {
-                var pc = new SimplePrincipalCollection();
-                pc.add(username, getName());
-                pc.add(5, getName());
-                pc.add(new PropertyPrincipal(username), getName());
-                account = new SimpleAccount(pc, password, getName());
+                var principalBuilder = new 
ImmutablePrincipalCollection.Builder();

Review Comment:
   Ah! `var` in use!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to