X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fimpl%2FSubtreeFilter.java;h=2e7accad45e8950b7be2c3fb11a0a1ad1e74b93d;hp=8b2ca86010a06aa5c1b509bd617a08de72fd684a;hb=ecd49a2e11021576f51052ad54f785c9b0e65122;hpb=4fa1233c74014f483bbe857283ee098442abf28d diff --git a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/SubtreeFilter.java b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/SubtreeFilter.java index 8b2ca86010..2e7accad45 100644 --- a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/SubtreeFilter.java +++ b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/SubtreeFilter.java @@ -28,14 +28,14 @@ import org.xml.sax.SAXException; * See rfc6241 for details. */ public class SubtreeFilter { - private static final Logger logger = LoggerFactory.getLogger(SubtreeFilter.class); + private static final Logger LOG = LoggerFactory.getLogger(SubtreeFilter.class); static Document applySubtreeFilter(Document requestDocument, Document rpcReply) throws NetconfDocumentedException { // FIXME: rpcReply document must be reread otherwise some nodes do not inherit namespaces. (services/service) try { rpcReply = XmlUtil.readXmlToDocument(XmlUtil.toString(rpcReply, true)); } catch (SAXException | IOException e) { - logger.error("Cannot transform document", e); + LOG.error("Cannot transform document", e); throw new NetconfDocumentedException("Cannot transform document"); } @@ -49,8 +49,8 @@ public class SubtreeFilter { XmlNetconfConstants.FILTER, XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0); if (maybeFilter.isPresent() && ( "subtree".equals(maybeFilter.get().getAttribute("type"))|| - "subtree".equals(maybeFilter.get().getAttribute("type", XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0)) - )) { + "subtree".equals(maybeFilter.get().getAttribute("type", XmlNetconfConstants.URN_IETF_PARAMS_XML_NS_NETCONF_BASE_1_0))) + ) { // do @@ -160,7 +160,7 @@ public class SubtreeFilter { if (result == null) { result = MatchingResult.NO_MATCH; } - logger.debug("Matching {} to {} resulted in {}", src, filter, result); + LOG.debug("Matching {} to {} resulted in {}", src, filter, result); return result; }