Update RpcResultBuilder.buildFuture() 11/77511/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Nov 2018 15:53:01 +0000 (16:53 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Nov 2018 16:01:46 +0000 (17:01 +0100)
commit8fa118dd05e41573147792dfd1c18a2949b272e8
tree202089816dbab177dd88b34eae7ce1cde2436a6a
parent5f2b57ac079724b15352555b6a710be68d2ce671
Update RpcResultBuilder.buildFuture()

Returning a FluentFuture here is extremely useful, retrofit
the builder by introducing a hidden superclass which returns
ListenableFuture, which allows us to seamlessly return
a FluentFuture instead by forcing the compiler to emit a synthetic
bridge method.

Change-Id: I3d9725c666ff5d78f795eb0eada6e7acf81e8e70
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilderCompat.java [new file with mode: 0644]