Use diamond type

This commit is contained in:
Johnny Lim
2017-11-20 02:25:30 +09:00
committed by Rob Winch
parent cfe40358bd
commit 57353d18e5
221 changed files with 423 additions and 428 deletions

View File

@@ -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() {

View File

@@ -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);