X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FStmtTestUtils.java;h=b2042cfd2a3fb81af49980d2a0e540ca4d52f49d;hb=15a9e5d2b74e1276c8753b4d83137b6b614eda13;hp=b4d32f48795bc73440c2717b4071921fefc5c017;hpb=f52b78954a83b6d82a81b7f6cdcc7d7d02e579dd;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/StmtTestUtils.java b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/StmtTestUtils.java index b4d32f4879..b2042cfd2a 100644 --- a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/StmtTestUtils.java +++ b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/StmtTestUtils.java @@ -57,7 +57,7 @@ public final class StmtTestUtils { } public static void log(final Throwable exception, final String indent) { - LOG.debug(indent + exception.getMessage()); + LOG.debug("{}{}", indent, exception.getMessage()); final Throwable[] suppressed = exception.getSuppressed(); for (final Throwable throwable : suppressed) { @@ -84,7 +84,7 @@ public final class StmtTestUtils { } public static void printReferences(final Module module, final boolean isSubmodule, final String indent) { - LOG.debug(indent + (isSubmodule ? "Submodule " : "Module ") + module.getName()); + LOG.debug("{}{} {}", indent, (isSubmodule ? "Submodule" : "Module"), module.getName()); final Set submodules = module.getSubmodules(); for (final Module submodule : submodules) { printReferences(submodule, true, indent + " "); @@ -95,7 +95,7 @@ public final class StmtTestUtils { public static void printChilds(final Collection childNodes, final String indent) { for (final DataSchemaNode child : childNodes) { - LOG.debug(indent + "Child " + child.getQName().getLocalName()); + LOG.debug("{}{} {}", indent, "Child", child.getQName().getLocalName()); if (child instanceof DataNodeContainer) { printChilds(((DataNodeContainer) child).getChildNodes(), indent + " "); }