Fix checkArgument() format string
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / reactor / StatementContextBase.java
index 9f9f5390c30f8f316251a4fcfd24adea6d2cfa19..21af8fc0afde925601dfa1087ad2791e80603e56 100644 (file)
@@ -578,7 +578,7 @@ public abstract class StatementContextBase<A, D extends DeclaredStatement<A>, E
 
         final NamespaceBehaviour<K, V, N> behaviour = getBehaviourRegistry().getNamespaceBehaviour(type);
         Preconditions.checkArgument(behaviour instanceof NamespaceBehaviourWithListeners,
-            "Namespace {} does not support listeners", type);
+            "Namespace %s does not support listeners", type);
 
         final NamespaceBehaviourWithListeners<K, V, N> casted = (NamespaceBehaviourWithListeners<K, V, N>) behaviour;
         casted.addValueListener(new ValueAddedListener<K>(this, key) {