Deprecate BindingReflections.isNotification() 44/103344/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Nov 2022 12:04:36 +0000 (13:04 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 24 Nov 2022 14:31:50 +0000 (14:31 +0000)
This methods is only used internally and in tests, deprecate it for
removal.

Change-Id: I1c4b5b863c20caa5056a5db505921ff512cdeba8
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 0e10689fc6f267c770b4897580f3b19f56221036..e7e467e45b2c88bb3543c149f48e3ad32cebd46b 100644 (file)
@@ -282,7 +282,9 @@ public final class BindingReflections {
      *
      * @param potentialNotification class to examine
      * @return True if the class represents a Notification.
+     * @deprecated This method is only used internally and is schedule for removal
      */
+    @Deprecated(since = "10.0.4", forRemoval = true)
     public static boolean isNotification(final Class<?> potentialNotification) {
         checkArgument(potentialNotification != null, "potentialNotification must not be null.");
         return Notification.class.isAssignableFrom(potentialNotification);