Scripted update of if statements
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / SchemaAwareApplyOperation.java
index 2ca70603d4cf33db7a5ab2131a326cde8d78d0b5..29fa6070fa3b33acc47efb87ff6bd17efa42f08e 100644 (file)
@@ -93,7 +93,7 @@ abstract class SchemaAwareApplyOperation extends ModificationApplyOperation {
 
     private static SchemaAwareApplyOperation fromLeafListSchemaNode(final LeafListSchemaNode schemaNode, final TreeType treeType) {
         final SchemaAwareApplyOperation op;
-        if(schemaNode.isUserOrdered()) {
+        if (schemaNode.isUserOrdered()) {
             op =  new OrderedLeafSetModificationStrategy(schemaNode, treeType);
         } else {
             op = new UnorderedLeafSetModificationStrategy(schemaNode, treeType);
@@ -146,7 +146,7 @@ abstract class SchemaAwareApplyOperation extends ModificationApplyOperation {
              * it should not cause transaction to fail, since result of this merge
              * leads to same data.
              */
-            if(!original.get().getData().equals(current.get().getData())) {
+            if (!original.get().getData().equals(current.get().getData())) {
                 checkNotConflicting(path, original.get(), current.get());
             }
         }
@@ -167,7 +167,7 @@ abstract class SchemaAwareApplyOperation extends ModificationApplyOperation {
         final Optional<TreeNode> original = modification.getOriginal();
         if (original.isPresent() && current.isPresent()) {
             checkNotConflicting(path, original.get(), current.get());
-        } else if(original.isPresent()) {
+        } else if (original.isPresent()) {
             throw new ConflictingModificationAppliedException(path,"Node was deleted by other transaction.");
         } else if (current.isPresent()) {
             throw new ConflictingModificationAppliedException(path, "Node was created by other transaction.");