From: Robert Varga Date: Fri, 23 Oct 2020 17:28:51 +0000 (+0200) Subject: Deprecate NoopAutoCloseable for removal X-Git-Tag: v3.0.2~12 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=f8f30f62f7a7029ea878737251eb136f20da2fce Deprecate NoopAutoCloseable for removal This utility is not used here, just in NETCONF, which can brew its own. Deprecate it for removal. Change-Id: I78ef26278be8f88049e13129f388de4f5b899b82 Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/NoopAutoCloseable.java b/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/NoopAutoCloseable.java index 7f95f9632c..298b143bf3 100644 --- a/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/NoopAutoCloseable.java +++ b/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/NoopAutoCloseable.java @@ -11,14 +11,18 @@ package org.opendaylight.controller.sal.common.util; * An AutoCloseable that does nothing. * * @author Thomas Pantelis + * @deprecated This class is no longer used in this project and is scheduled for removal. */ +@Deprecated(forRemoval = true) public final class NoopAutoCloseable implements AutoCloseable { public static final NoopAutoCloseable INSTANCE = new NoopAutoCloseable(); private NoopAutoCloseable() { + // Hidden on purpose } @Override public void close() { + // Noop } }