]> source.dussan.org Git - archiva.git/commitdiff
generic for cache
authorOlivier Lamy <olamy@apache.org>
Sun, 6 Jan 2013 00:07:09 +0000 (00:07 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 6 Jan 2013 00:07:09 +0000 (00:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1429440 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java

index 527b3a1de3faf90cae1b80d52849e9e0090a1763..a87a4c4334885745784f5b88be67b6dc7b0cf71c 100644 (file)
@@ -59,7 +59,7 @@ public class ArchivaConfigurableUsersManager
 
     @Inject
     @Named(value = "cache#users")
-    private Cache usersCache;
+    private Cache<String,User> usersCache;
 
     @Override
     public void initialize()
@@ -196,7 +196,7 @@ public class ArchivaConfigurableUsersManager
         User user = null;
         if ( useUsersCache() )
         {
-            user = (User) usersCache.get( username );
+            user = usersCache.get( username );
             if ( user != null )
             {
                 return user;