Propagate status in identity classes 60/102360/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 9 Sep 2022 13:51:15 +0000 (15:51 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Sep 2022 07:29:15 +0000 (09:29 +0200)
When we have a deprecated or obsolete identity, the resulting interface
should be marked as deprecated, perhaps for removal.

JIRA: MDSAL-769
Change-Id: I5aefc70d5cde269217143e092ba208589b55d12f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 01ae8645476f3ba5d8bfc3fb4204b89acad2a037)

binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/IdentityGenerator.java

index 9c8a9d1bcb753cf7021de5ad0e510b9a3e7311c4..811e7b92a4ebec9126389e0a07aa612e08b98e32 100644 (file)
@@ -61,6 +61,8 @@ public final class IdentityGenerator
             builder.addImplementsType(BASE_IDENTITY);
         }
 
+        annotateDeprecatedIfNecessary(statement(), builder);
+
         final ModuleGenerator module = currentModule();
         module.addQNameConstant(builder, localName());