Cleanup checkstyle in yang-{data,model}-api
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / YinDomSchemaSource.java
index cc91d44a6eee4f06a48306f02e2ada56a541a162..096932bd061c94c4bc8778dad41af38ff995b2b0 100644 (file)
@@ -63,8 +63,8 @@ public abstract class YinDomSchemaSource implements YinXmlSchemaSource {
         final QName qname = QName.create(rootNs, root.getLocalName());
         Preconditions.checkArgument(RFC6020_YIN_MODULE.equals(qname.getModule()),
             "Root node namepsace %s does not match %s", rootNs, YangConstants.RFC6020_YIN_NAMESPACE);
-        Preconditions.checkArgument(MODULE.getStatementName().equals(qname) ||
-            SUBMODULE.getStatementName().equals(qname), "Root element %s is not a module nor a submodule", qname);
+        Preconditions.checkArgument(MODULE.getStatementName().equals(qname)
+            || SUBMODULE.getStatementName().equals(qname), "Root element %s is not a module nor a submodule", qname);
 
         Preconditions.checkArgument(root instanceof Element, "Root node %s is not an element", root);
         final Element element = (Element)root;
@@ -117,7 +117,8 @@ public abstract class YinDomSchemaSource implements YinXmlSchemaSource {
      * @return A {@link YinDomSchemaSource} instance
      * @throws TransformerException when the provided source fails to transform
      */
-    @Nonnull public static YinDomSchemaSource transform(final YinXmlSchemaSource xmlSchemaSource) throws TransformerException {
+    @Nonnull public static YinDomSchemaSource transform(final YinXmlSchemaSource xmlSchemaSource)
+            throws TransformerException {
         final YinDomSchemaSource cast = castSchemaSource(xmlSchemaSource);
         return cast != null ? cast :
             create(xmlSchemaSource.getIdentifier(), transformSource(xmlSchemaSource.getSource()));