Fix slf4j usage errors found by checkstyle-logging
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / StmtTestUtils.java
index b4d32f48795bc73440c2717b4071921fefc5c017..b2042cfd2a3fb81af49980d2a0e540ca4d52f49d 100644 (file)
@@ -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<Module> 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<DataSchemaNode> 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 + "      ");
             }