Make generics explicit to please ECJ.
This commit is contained in:
parent
807da19150
commit
b586465a4c
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue