Do not use org.opendaylight.controller.sal.common.util.NoopAutoCloseable 21/93421/4
authorVladyslav Marchenko <vladyslav.marchenko@pantheon.tech>
Tue, 27 Oct 2020 14:21:23 +0000 (16:21 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 28 Oct 2020 13:40:47 +0000 (13:40 +0000)
commit39f789ce499fc45c845c09a9868dbbac5fe78a27
tree5a89f5387e7c47194d47a4342b4702308a0b6550
parent55b9310631f10d93a0cdd379838e90388ab1e4b4
Do not use org.opendaylight.controller.sal.common.util.NoopAutoCloseable

NoopAutoCloseable hards back to Java 7 days and is an anachronism
with advent of lambdas. Replace its use with no-op lambdas.

As this is the last class used from sal-common-util in both components,
remove that dependency as well.

A quick follow-up audit shows we can remove the dependency from two
other artifacts, leaving rest-nb-bierman02 the only artifact still
needing it for AbstractMXBean.

Change-Id: Id97d3cdf110047778248e21021db39a6da2c3a5b
Signed-off-by: Vladyslav Marchenko <vladyslav.marchenko@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/mdsal-netconf-monitoring/pom.xml
netconf/mdsal-netconf-monitoring/src/main/java/org/opendaylight/controller/config/yang/netconf/mdsal/monitoring/MdsalMonitoringMapperFactory.java
netconf/mdsal-netconf-notification/pom.xml
netconf/mdsal-netconf-notification/src/main/java/org/opendaylight/netconf/mdsal/notification/impl/NetconfNotificationOperationServiceFactory.java
netconf/sal-netconf-connector/pom.xml
restconf/restconf-nb-rfc8040/pom.xml