X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fadsal%2Fnorthbound%2Fcommons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnorthbound%2Fcommons%2Fquery%2FWrapperTypeInfo.java;h=156942c61d79447ce8f00da4a97f3f35ec1be57f;hp=a8172f2adda2b2ec5554c52e21a1e5d9ac7c5bae;hb=c5c8f4e9dff4a07d17ee7517d32390f9fc9ddd8f;hpb=42c32160bfd41de57189bb246fec5ffb48ed8e9e diff --git a/opendaylight/adsal/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/query/WrapperTypeInfo.java b/opendaylight/adsal/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/query/WrapperTypeInfo.java index a8172f2add..156942c61d 100644 --- a/opendaylight/adsal/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/query/WrapperTypeInfo.java +++ b/opendaylight/adsal/northbound/commons/src/main/java/org/opendaylight/controller/northbound/commons/query/WrapperTypeInfo.java @@ -24,10 +24,14 @@ public class WrapperTypeInfo extends TypeInfo { if (LOGGER.isDebugEnabled()) { LOGGER.debug("retrieve collection: {}/{}", index, query.length); } - if (index >= query.length) return null; + if (index >= query.length) { + return null; + } explore(); TypeInfo child = getChild(query[index]); - if (child == null) return null; + if (child == null) { + return null; + } if (query.length == index+1) { // skipping this node return target; }else { // if list of list go to next node to get value @@ -37,7 +41,9 @@ public class WrapperTypeInfo extends TypeInfo { @Override public synchronized void explore() { - if (_explored) return; + if (_explored) { + return; + } if (LOGGER.isDebugEnabled()) { LOGGER.debug("exploring wrapper type: {} gtype: {}", _class, _accessor.getGenericType());