commit | 1b9c8ac7b22d0f4915d577f60bb5736b8177c22f | [log] [tgz] |
---|---|---|
author | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Fri Aug 28 15:35:43 2015 -0700 |
committer | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Fri Aug 28 17:17:52 2015 -0700 |
tree | 0c8bb55f857bd8c25374b3e75650b4ffd5e0a82f | |
parent | 4cb398813861165a7609f55379f7edf80b9bd5b3 [diff] |
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
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 d8af9e6..5f69fde 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 @@ .whenComplete((r, e) -> timer.stop(e)) .thenCompose(v -> { if (v != null) { - return CompletableFuture.completedFuture(serializer.decode(v)); + return CompletableFuture.<E>completedFuture(serializer.decode(v)); } CompletableFuture<E> newPendingFuture = new CompletableFuture<>(); pendingFutures.add(newPendingFuture);