Fix compilation in Eclipse (elastic/elasticsearch#4745)

Eclipse compiler is silly....

Original commit: elastic/x-pack-elasticsearch@1c7d19bffe
This commit is contained in:
Nik Everett 2017-01-26 12:00:52 -05:00 committed by GitHub
parent 31bda61d92
commit ae994c72d3
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ public final class ExecutionService extends AbstractComponent {
} }
// Lets show the execution that pending the longest first: // 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; return queuedWatches;
} }