Deprecate AugmentationReader for removal 76/87876/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Feb 2020 21:23:52 +0000 (22:23 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Feb 2020 21:38:33 +0000 (22:38 +0100)
AugmentationHolder provides the equivalent functionality in-line
in the DataObject itself. Deprecate AugmentationHolder for removal.

JIRA: MDSAL-392
Change-Id: I51044365a38e26f57792bb2036a2775f3b92d711
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/util/AugmentationReader.java

index faf6dd757b0a17c6de99d08317b0299b0234d9e1..e764d50d198cf65fb5a2794f6f48356be130b22a 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.mdsal.binding.dom.codec.util;
 
 import java.util.Map;
 import org.opendaylight.yangtools.yang.binding.Augmentation;
+import org.opendaylight.yangtools.yang.binding.AugmentationHolder;
 
 /**
  * Interface which sould be implemented by proxy {@link java.lang.reflect.InvocationHandler} to obtain augmentations
@@ -16,7 +17,10 @@ import org.opendaylight.yangtools.yang.binding.Augmentation;
  *
  * <p>
  * If implemented proxy does not implement this interface, its augmentations are not properly serialized / deserialized.
+ *
+ * @deprecated Use {@link AugmentationHolder} instead.
  */
+@Deprecated(forRemoval = true)
 public interface AugmentationReader {
 
     Map<Class<? extends Augmentation<?>>, Augmentation<?>> getAugmentations(Object obj);