Update portmapping YANG model
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / tasks / RollbackProcessor.java
index 2531a426058f400d26ca0f924f5aa9374b091c9c..667152b6b1253a42e34cfcd560511418fa6da010 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.transportpce.renderer.provisiondevice.tasks;
 
 import java.util.Deque;
 import java.util.LinkedList;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -42,7 +41,7 @@ public class RollbackProcessor {
      * Check if any previously added task requires rollback.
      * Rollback is necessary if just single task requires rollback.
      * @return
-     *   true if any of added tasks requires rollback. false if none of added tasks requires rollback.
+     *     true if any of added tasks requires rollback. false if none of added tasks requires rollback.
      */
     public boolean isRollbackNecessary() {
         for (RollbackTask task: this.tasks) {
@@ -58,7 +57,7 @@ public class RollbackProcessor {
      * It does not matter if any of the tasks requires rollback.
      * All previously added tasks will be rolled back and removed from this processor.
      * @return
-     *   number of tasks rolled back
+     *     number of tasks rolled back
      */
     @SuppressWarnings("checkstyle:IllegalCatch")
     public int rollbackAll() {
@@ -69,7 +68,7 @@ public class RollbackProcessor {
             try {
                 LOG.info("rolling back: {}", task.getId());
                 task.call();
-            //this methode prototype only use the generic Exception and no specific and useable subclasse
+            //this method prototype only uses the generic Exception but no specific and useable subclass
             } catch (Exception e) {
                 LOG.error("ERROR: Rollback task {} has failed", task.getId(), e);
             }
@@ -81,7 +80,7 @@ public class RollbackProcessor {
      * Rollback all tasks in case any task has failed.
      * If rollback is necessary, all previously added tasks will be rolled back and removed from this processor.
      * @return
-     *   number of tasks rolled back
+     *     number of tasks rolled back
      */
     public int rollbackAllIfNecessary() {
         if (!isRollbackNecessary()) {