Make generics explicit to please ECJ.

This commit is contained in:
Adrien Grand 2016-08-19 15:55:24 +02:00
parent 807da19150
commit b586465a4c
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class ClusterModuleTests extends ModuleTestCase {
public void testRegisterAllocationDeciderDuplicate() { public void testRegisterAllocationDeciderDuplicate() {
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () ->
new ClusterModule(Settings.EMPTY, clusterService, new ClusterModule(Settings.EMPTY, clusterService,
Collections.singletonList(new ClusterPlugin() { Collections.<ClusterPlugin>singletonList(new ClusterPlugin() {
@Override @Override
public Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings) { public Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings) {
return Collections.singletonList(new EnableAllocationDecider(settings, clusterSettings)); return Collections.singletonList(new EnableAllocationDecider(settings, clusterSettings));