BUG-865: remove String-based getDataChildByName() 88/43588/3
authorMartin Ciglan <mciglan@cisco.com>
Wed, 10 Aug 2016 08:58:08 +0000 (10:58 +0200)
committerMartin Ciglan <mciglan@cisco.com>
Mon, 15 Aug 2016 08:07:39 +0000 (08:07 +0000)
This is follow-up patch to reflect Yangtools changes
and needs to be merged after
https://git.opendaylight.org/gerrit/#/c/42898

Change-Id: Icb66e8096cb77589de3ee89a87917a528e8d0dc0
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/util/compat/DataSchemaContainerProxy.java
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/util/ProxySchemaContext.java
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/util/YangSchemaUtils.java

index d243c88..0c79e19 100644 (file)
@@ -42,11 +42,6 @@ class DataSchemaContainerProxy implements DataNodeContainer {
         return realChildSchemas;
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String arg0) {
-        throw new UnsupportedOperationException();
-    }
-
     @Override
     public Set<GroupingDefinition> getGroupings() {
         return Collections.emptySet();
index b0274a6..660fb94 100644 (file)
@@ -126,11 +126,6 @@ public class ProxySchemaContext implements SchemaContext {
         return getCurrentSchema().getDataChildByName(qName);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String s) {
-        return getCurrentSchema().getDataChildByName(s);
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         return getCurrentSchema().getUses();
index 238ad10..ad759a7 100644 (file)
@@ -149,12 +149,6 @@ public final class YangSchemaUtils {
             return null;
         }
 
-        @Override
-        public DataSchemaNode getDataChildByName(final String name) {
-            // TODO Auto-generated method stub
-            return null;
-        }
-
         @Override
         public Set<UsesNode> getUses() {
             // TODO Auto-generated method stub