Do not needlessly bridge promises 25/70225/4
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 31 Mar 2018 15:31:00 +0000 (17:31 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Apr 2018 17:09:01 +0000 (19:09 +0200)
commit81249f9abe3c66a4ae0a819ac3ac821565950265
tree5be7c9de9d5e85ea555c837d04a95b3514de83ed
parenta3022c29beea055ec8e7cacaa30dd64d5a80887c
Do not needlessly bridge promises

Channel has an alternative writeAndFlush() method, which takes
a promise to complete. Using it saves allocation of two objects
and required listener synchronization.

Change-Id: I96c933de6e3406116b30f735d480462ef6d161d8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-client/src/test/java/org/opendaylight/netconf/client/NetconfClientSessionNegotiatorTest.java
netconf/netconf-client/src/test/java/org/opendaylight/netconf/client/SimpleNetconfClientSessionListenerTest.java
netconf/netconf-impl/src/test/java/org/opendaylight/netconf/impl/mapping/operations/DefaultCloseSessionTest.java
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSession.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionTest.java