Enforce checkstyle on yang-data-codec-xml
[yangtools.git] / yang / yang-data-codec-xml / src / main / java / org / opendaylight / yangtools / yang / data / codec / xml / XMLStreamWriterUtils.java
index 5205497bceb33defbcb5c13c3c695c458beae74b..0434041d7cbb51718190059d58d162969f77c1bb 100644 (file)
@@ -68,8 +68,8 @@ abstract class XMLStreamWriterUtils {
         }
 
         Preconditions.checkArgument(schemaNode instanceof TypedSchemaNode,
-                "Unable to write value for node %s, only nodes of type: leaf and leaf-list can be written at this point",
-                schemaNode.getQName());
+            "Unable to write value for node %s, only nodes of type: leaf and leaf-list can be written at this point",
+            schemaNode.getQName());
 
         TypeDefinition<?> type = ((TypedSchemaNode) schemaNode).getType();
         if (type instanceof LeafrefTypeDefinition) {
@@ -127,7 +127,7 @@ abstract class XMLStreamWriterUtils {
             final QName qname = (QName) value;
 
             //in case parent is present and same as element namespace write value without namespace
-            if (qname.getNamespace().equals(parent.getNamespace())){
+            if (qname.getNamespace().equals(parent.getNamespace())) {
                 writer.writeCharacters(qname.getLocalName());
             } else {
                 final String ns = qname.getNamespace().toString();