From 6b60710011afa258f0cd901f5c526e86dbcc8ef2 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 24 Nov 2022 12:38:23 +0100 Subject: [PATCH] Deprecate BindingReflections.getChildrenClass* These methods are only used by mdsal-binding-dom-codec, deprecate them. Change-Id: I9ba5a82bfab437640c76625a316e60c4902099fc Signed-off-by: Robert Varga --- .../mdsal/binding/spec/reflect/BindingReflections.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java b/binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java index 936cdcf3ff..fb4635efdb 100644 --- a/binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java +++ b/binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java @@ -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> getChildrenClasses(final Class 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, Method> getChildrenClassToMethod(final Class type) { return getChildClassToMethod(type, BindingMapping.GETTER_PREFIX); } @Beta + @Deprecated(since = "10.0.4", forRemoval = true) public static Map, Method> getChildrenClassToNonnullMethod(final Class type) { return getChildClassToMethod(type, BindingMapping.NONNULL_PREFIX); } -- 2.36.6