diff --git a/core/src/main/java/org/acegisecurity/userdetails/memory/UserMap.java b/core/src/main/java/org/acegisecurity/userdetails/memory/UserMap.java index 6882b40653..96ebe4bd36 100644 --- a/core/src/main/java/org/acegisecurity/userdetails/memory/UserMap.java +++ b/core/src/main/java/org/acegisecurity/userdetails/memory/UserMap.java @@ -15,18 +15,15 @@ package org.acegisecurity.userdetails.memory; -import org.acegisecurity.userdetails.User; -import org.acegisecurity.userdetails.UserDetails; -import org.acegisecurity.userdetails.UsernameNotFoundException; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import org.springframework.util.Assert; - import java.util.HashMap; import java.util.Map; +import org.acegisecurity.userdetails.UserDetails; +import org.acegisecurity.userdetails.UsernameNotFoundException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.util.Assert; + /** * Used by {@link InMemoryDaoImpl} to store a list of users and their corresponding granted authorities. @@ -68,8 +65,8 @@ public class UserMap { * * @throws UsernameNotFoundException if the user could not be found */ - public User getUser(String username) throws UsernameNotFoundException { - User result = (User) this.userMap.get(username.toLowerCase()); + public UserDetails getUser(String username) throws UsernameNotFoundException { + UserDetails result = (UserDetails) this.userMap.get(username.toLowerCase()); if (result == null) { throw new UsernameNotFoundException("Could not find user: " + username);