Fix compilation in Eclipse (elastic/elasticsearch#4745)
Eclipse compiler is silly....
Original commit: elastic/x-pack-elasticsearch@1c7d19bffe72f1a1316837baca659afc102a9dfb
@@ -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;
}
