Use diamond type
This commit is contained in:
@@ -39,7 +39,7 @@ public class GaeUserAuthentication implements Authentication {
|
||||
}
|
||||
|
||||
public Collection<GrantedAuthority> getAuthorities() {
|
||||
return new HashSet<GrantedAuthority>(principal.getAuthorities());
|
||||
return new HashSet<>(principal.getAuthorities());
|
||||
}
|
||||
|
||||
public Object getCredentials() {
|
||||
|
||||
@@ -30,7 +30,7 @@ public class InMemoryUserRegistry implements UserRegistry {
|
||||
private final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
private final Map<String, GaeUser> users = Collections
|
||||
.synchronizedMap(new HashMap<String, GaeUser>());
|
||||
.synchronizedMap(new HashMap<>());
|
||||
|
||||
public GaeUser findUser(String userId) {
|
||||
return users.get(userId);
|
||||
|
||||
Reference in New Issue
Block a user