From c5734f758ca91bd6c514538eaac8775d4789a603 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 6 Jan 2013 00:07:09 +0000 Subject: [PATCH] generic for cache git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1429440 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/security/ArchivaConfigurableUsersManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java index 527b3a1de..a87a4c433 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java @@ -59,7 +59,7 @@ public class ArchivaConfigurableUsersManager @Inject @Named(value = "cache#users") - private Cache usersCache; + private Cache 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; -- 2.39.5