Fix compilation in Eclipse (elastic/elasticsearch#4745)
Eclipse compiler is silly.... Original commit: elastic/x-pack-elasticsearch@1c7d19bffe
This commit is contained in:
parent
31bda61d92
commit
ae994c72d3
|
@ -179,7 +179,8 @@ public final class ExecutionService extends AbstractComponent {
|
|||
}
|
||||
|
||||
// Lets show the execution that pending the longest first:
|
||||
Collections.sort(queuedWatches, Comparator.comparing(QueuedWatch::executionTime));
|
||||
// Note that the type parameters on comparing are required to make the comparing method work
|
||||
Collections.sort(queuedWatches, Comparator.<QueuedWatch, DateTime>comparing(QueuedWatch::executionTime));
|
||||
return queuedWatches;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue