Deprecate NoopAutoCloseable for removal 11/93311/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Oct 2020 17:28:51 +0000 (19:28 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Oct 2020 17:51:21 +0000 (19:51 +0200)
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 <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/NoopAutoCloseable.java

index 7f95f96..298b143 100644 (file)
@@ -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
     }
 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.