Fix checkArgument() format string 24/101324/4
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 29 May 2022 18:09:11 +0000 (20:09 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 29 May 2022 19:14:41 +0000 (21:14 +0200)
We should be using %s, not {} please holder.

Change-Id: I80e22247cef602f50856e792baa8be83b815ebf7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
codec/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONStreamWriterContext.java

index 80b4fa6fe221feb784326c7ce859f237d381df34..edb1dec66573179af90b1f344c941876344b023c 100644 (file)
@@ -68,7 +68,7 @@ abstract class JSONStreamWriterContext {
         final QNameModule module = qname.getModule();
         if (!module.getNamespace().equals(getNamespace())) {
             final Optional<String> modules = schema.findModule(module).map(Module::getName);
-            checkArgument(modules.isPresent(), "Could not find module for namespace {}", module);
+            checkArgument(modules.isPresent(), "Could not find module for namespace %s", module);
             sb.append(modules.get()).append(':');
         }
         sb.append(qname.getLocalName());