@@ -285,10 +285,9 @@ public void findGroupMembersReturnsCorrectData() {
285
285
}
286
286
287
287
@ Test
288
- @ SuppressWarnings ("unchecked" )
289
288
public void createGroupInsertsCorrectData () {
290
289
this .manager .createGroup ("TEST_GROUP" , AuthorityUtils .createAuthorityList ("ROLE_X" , "ROLE_Y" ));
291
- List roles = this .template .queryForList ("select ga.authority from groups g, group_authorities ga "
290
+ List <?> roles = this .template .queryForList ("select ga.authority from groups g, group_authorities ga "
292
291
+ "where ga.group_id = g.id " + "and g.group_name = 'TEST_GROUP'" );
293
292
assertThat (roles ).hasSize (2 );
294
293
}
@@ -367,7 +366,7 @@ public void updateUserDoesNotSaveAuthoritiesIfEnableAuthoritiesIsFalse() {
367
366
368
367
// SEC-2166
369
368
@ Test
370
- public void createNewAuthenticationUsesNullPasswordToKeepPassordsSave () {
369
+ public void createNewAuthenticationUsesNullPasswordToKeepPasswordSave () {
371
370
insertJoe ();
372
371
UsernamePasswordAuthenticationToken currentAuth = UsernamePasswordAuthenticationToken .authenticated ("joe" , null ,
373
372
AuthorityUtils .createAuthorityList ("ROLE_USER" ));
@@ -443,9 +442,9 @@ private void insertJoe() {
443
442
this .cache .putUserInCache (joe );
444
443
}
445
444
446
- private class MockUserCache implements UserCache {
445
+ private static class MockUserCache implements UserCache {
447
446
448
- private Map <String , UserDetails > cache = new HashMap <>();
447
+ private final Map <String , UserDetails > cache = new HashMap <>();
449
448
450
449
@ Override
451
450
public UserDetails getUserFromCache (String username ) {
0 commit comments