Use diamond type
This commit is contained in:
@@ -230,7 +230,7 @@ public class ActiveDirectoryLdapAuthenticationProviderTests {
|
||||
when(
|
||||
ctx.search(any(Name.class), any(String.class), any(Object[].class),
|
||||
any(SearchControls.class))).thenReturn(
|
||||
new EmptyEnumeration<SearchResult>());
|
||||
new EmptyEnumeration<>());
|
||||
|
||||
provider.contextFactory = createContextFactoryReturning(ctx);
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class InetOrgPersonTests {
|
||||
InetOrgPerson p = (InetOrgPerson) essence.createUserDetails();
|
||||
essence = new InetOrgPerson.Essence(createUserContext());
|
||||
InetOrgPerson p2 = (InetOrgPerson) essence.createUserDetails();
|
||||
Set<InetOrgPerson> set = new HashSet<InetOrgPerson>();
|
||||
Set<InetOrgPerson> set = new HashSet<>();
|
||||
set.add(p);
|
||||
assertThat(set.contains(p2)).isTrue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user