Create onGlobalContextUpdated() in SchemaContextListener 72/5572/1
authorRobert Varga <rovarga@cisco.com>
Sun, 9 Mar 2014 18:19:57 +0000 (19:19 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 9 Mar 2014 18:19:57 +0000 (19:19 +0100)
With deprecating SchemaServiceListener, we need an explicit mark that
the method itself is not deprecated. Add an overridden method
declaration so the users do not get a useless warning.

Change-Id: I2e1da885f103f58beec2aa28dbf953c0198f3fd9
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextListener.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaServiceListener.java

index 435f6308a6efa4e8f90e4b7bb187fbcd81462696..2ff674016794442a5cad3d7e1ab03d7cc20bc954 100644 (file)
@@ -8,5 +8,6 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 public interface SchemaContextListener extends SchemaServiceListener {
-
+    @Override
+    void onGlobalContextUpdated(SchemaContext context);
 }
index c9e11facc5593fe94831384a301c01bfd2033b2a..6ad231521533268d84af6472ceb83d30909fe2bb 100644 (file)
@@ -14,6 +14,5 @@ import java.util.EventListener;
  */
 @Deprecated
 public interface SchemaServiceListener extends EventListener {
-    // FIXME: move declaration to SchemaContextListener
     void onGlobalContextUpdated(SchemaContext context);
 }