mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 14:21:33 +02:00
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
This commit is contained in:
parent
4cb3988138
commit
1b9c8ac7b2
@ -91,7 +91,7 @@ public class DefaultDistributedQueue<E> implements DistributedQueue<E> {
|
||||
.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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user