Reapplying: Adds cast hint for eclipse
Eclipse errors because the direct supperclass of the two listeners is package private and it doesn’t have the smarts to look higher in the heirarchy. So we need to add a cast hint to force Eclipse to consider the elements as Listeners This fix was mistakenly removed in another commit Original commit: elastic/x-pack-elasticsearch@6305456d5a
This commit is contained in:
parent
380f6d9bff
commit
4a81c85f71
|
@ -6,7 +6,6 @@
|
||||||
package org.elasticsearch.xpack.ml;
|
package org.elasticsearch.xpack.ml;
|
||||||
|
|
||||||
import org.apache.logging.log4j.message.ParameterizedMessage;
|
import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||||
import org.elasticsearch.ResourceAlreadyExistsException;
|
|
||||||
import org.elasticsearch.client.Client;
|
import org.elasticsearch.client.Client;
|
||||||
import org.elasticsearch.cluster.ClusterChangedEvent;
|
import org.elasticsearch.cluster.ClusterChangedEvent;
|
||||||
import org.elasticsearch.cluster.ClusterState;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
|
@ -181,7 +180,7 @@ public class MlInitializationService extends AbstractComponent implements Cluste
|
||||||
|
|
||||||
private void installDailyManagementService() {
|
private void installDailyManagementService() {
|
||||||
if (mlDailyManagementService == null) {
|
if (mlDailyManagementService == null) {
|
||||||
mlDailyManagementService = new MlDailyManagementService(threadPool, Arrays.asList(
|
mlDailyManagementService = new MlDailyManagementService(threadPool, Arrays.asList((MlDailyManagementService.Listener)
|
||||||
new ExpiredResultsRemover(client, clusterService, auditor),
|
new ExpiredResultsRemover(client, clusterService, auditor),
|
||||||
new ExpiredModelSnapshotsRemover(client, clusterService)
|
new ExpiredModelSnapshotsRemover(client, clusterService)
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue