Cleanup ReconnectPromise a bit 05/98605/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Sep 2021 00:48:41 +0000 (02:48 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 18 Nov 2021 09:56:56 +0000 (10:56 +0100)
commitd16d1893aad12997753235e08170fa54ff76b99a
tree6346343f2b14dab50eed5e199b30e194c133f2d9
parent5c65f0d512c58b77329ffc26d177c338db01d217
Cleanup ReconnectPromise a bit

ClosedChannelHandler is really a stateless object used by
ReconnectPromise wiring. Acknowledge that fact by removing the class in
favor of a field initialized by an anonoymous inner class.

While we are here, also document locking rules and generally tighten
things up, eliminating a SpotBugs suppression in the process.

Change-Id: I6abc0ddf296dd9e2f5ea6de5a709003cf14edc7a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 82f3e83d6e777a5e76b8b6bca5a8c2646a4b82be)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/ReconnectPromise.java