Deprecate BindingReflections.getChildrenClass* 41/103341/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Nov 2022 11:38:23 +0000 (12:38 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Nov 2022 11:38:23 +0000 (12:38 +0100)
These methods are only used by mdsal-binding-dom-codec, deprecate them.

Change-Id: I9ba5a82bfab437640c76625a316e60c4902099fc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java

index 936cdcf3fff8e7839a91a6bd5fc4b6c66d33a7b2..fb4635efdb440256e7606205d7329bbe21c9d099 100644 (file)
@@ -379,10 +379,11 @@ public final class BindingReflections {
     /**
      * Scans supplied class and returns an iterable of all data children classes.
      *
-     * @param type
-     *            YANG Modeled Entity derived from DataContainer
+     * @param type YANG Modeled Entity derived from DataContainer
      * @return Iterable of all data children, which have YANG modeled entity
+     * @deprecated This method is only used in mdsal-binding-dom-codec and is schedule for removal.
      */
+    @Deprecated(since = "10.0.4", forRemoval = true)
     @SuppressWarnings("unchecked")
     public static Iterable<Class<? extends DataObject>> getChildrenClasses(final Class<? extends DataContainer> type) {
         checkArgument(type != null, "Target type must not be null");
@@ -403,12 +404,15 @@ public final class BindingReflections {
      *
      * @param type YANG Modeled Entity derived from DataContainer
      * @return Iterable of all data children, which have YANG modeled entity
+     * @deprecated This method is only used in mdsal-binding-dom-codec and is schedule for removal.
      */
+    @Deprecated(since = "10.0.4", forRemoval = true)
     public static Map<Class<? extends DataContainer>, Method> getChildrenClassToMethod(final Class<?> type) {
         return getChildClassToMethod(type, BindingMapping.GETTER_PREFIX);
     }
 
     @Beta
+    @Deprecated(since = "10.0.4", forRemoval = true)
     public static Map<Class<? extends DataContainer>, Method> getChildrenClassToNonnullMethod(final Class<?> type) {
         return getChildClassToMethod(type, BindingMapping.NONNULL_PREFIX);
     }