From ae994c72d3dd730400d144a360c6cbd532c4234d Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 26 Jan 2017 12:00:52 -0500 Subject: [PATCH] Fix compilation in Eclipse (elastic/elasticsearch#4745) Eclipse compiler is silly.... Original commit: elastic/x-pack-elasticsearch@1c7d19bffe72f1a1316837baca659afc102a9dfb --- .../xpack/watcher/execution/ExecutionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/watcher/execution/ExecutionService.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/watcher/execution/ExecutionService.java index 637f1db4f44..f5b731ad6b5 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/watcher/execution/ExecutionService.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/watcher/execution/ExecutionService.java @@ -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.comparing(QueuedWatch::executionTime)); return queuedWatches; }