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 7f95f9632c24d2148cb3562653eeb45bee3c79c0..298b143bf3109f0b17dc4ad3c8c55dcfcd575660 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
     }
 }