Use try-with-resources to get localport 42/110342/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 13:43:04 +0000 (14:43 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 13:44:16 +0000 (14:44 +0100)
commit9eb7f7c0b96306a5eb21ba3285b2ffce779706ed
tree49e5401053f60defc42e6d01a2532df7d1bbdb6e
parent9705ef728c35651a4f2a5c8953b0bf2dbf703beb
Use try-with-resources to get localport

Eclipse is flagging the use of AutoCloseable, oblige by restructuring
the code a bit.

Change-Id: I37d089ab9c783022ade6c66d6544613abc4f3fc6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/netconf-client/src/test/java/org/opendaylight/netconf/client/NetconfClientFactoryImplTest.java