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


##########
core/src/main/java/org/apache/shiro/realm/CachingRealm.java:
##########
@@ -200,7 +200,7 @@ protected void doClearCache(PrincipalCollection principals) 
{
     protected Object getAvailablePrincipal(PrincipalCollection principals) {
         Object primary = null;
         if (!isEmpty(principals)) {
-            Collection thisPrincipals = principals.fromRealm(getName());
+            Collection<?> thisPrincipals = principals.fromRealm(getName());

Review Comment:
   But this one could probably use var and you could maybe also remove 
Collection from the imports (if not used directly in your code).



-- 
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