From 1b9c8ac7b22d0f4915d577f60bb5736b8177c22f Mon Sep 17 00:00:00 2001 From: HIGUCHI Yuta Date: Fri, 28 Aug 2015 15:35:43 -0700 Subject: [PATCH] Workaround for Eclipse - Current Eclipse compiler fails to infer appropriate generic type. Workaround the issue by explicitly specifying the type. Might be related to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=467561 Change-Id: I7f41fd1a33f165fa8a57120a6f9a42cf587f94cc --- .../store/consistent/impl/DefaultDistributedQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDistributedQueue.java b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDistributedQueue.java index d8af9e64bd..5f69fde87b 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDistributedQueue.java +++ b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDistributedQueue.java @@ -91,7 +91,7 @@ public class DefaultDistributedQueue implements DistributedQueue { .whenComplete((r, e) -> timer.stop(e)) .thenCompose(v -> { if (v != null) { - return CompletableFuture.completedFuture(serializer.decode(v)); + return CompletableFuture.completedFuture(serializer.decode(v)); } CompletableFuture newPendingFuture = new CompletableFuture<>(); pendingFutures.add(newPendingFuture);