Update SchemaAwareXMLStreamNormalizedNodeStreamWriter 81/96381/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 May 2021 21:29:14 +0000 (23:29 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 27 May 2021 21:29:14 +0000 (23:29 +0200)
We have two message typos, fix them up.

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

index f859479751f1a58a3681e4d58ff27cf94ab22006..42ed26ec40c414af631a28d421d296b4fb423d18 100644 (file)
@@ -166,7 +166,7 @@ final class SchemaAwareXMLStreamNormalizedNodeStreamWriter
     @Override
     public void domSourceValue(final DOMSource value) throws IOException {
         final Object current = tracker.getParent();
-        checkState(current instanceof AnyxmlSchemaNode, "Unexpected scala value %s with %s", value, current);
+        checkState(current instanceof AnyxmlSchemaNode, "Unexpected value %s with %s", value, current);
         anyxmlValue(value);
     }
 
@@ -180,7 +180,7 @@ final class SchemaAwareXMLStreamNormalizedNodeStreamWriter
             try {
                 return tracker.resolveLeafref((LeafrefTypeDefinition) type);
             } catch (IllegalArgumentException e) {
-                throw new XMLStreamException("Cannot resolved type " + type, e);
+                throw new XMLStreamException("Cannot resolve type " + type, e);
             }
         }
         return type;