Reformat openecomp-be
[sdc.git] / openecomp-be / tools / zusammen-tools / src / main / java / org / openecomp / core / tools / commands / SetHealingFlag.java
index df9b9a5..b5a879d 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,7 +17,6 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
-
 package org.openecomp.core.tools.commands;
 
 import static org.openecomp.core.tools.commands.CommandName.RESET_OLD_VERSION;
@@ -30,7 +29,6 @@ import org.openecomp.core.tools.store.HealingHandler;
 import org.openecomp.core.tools.store.VersionCassandraLoader;
 import org.openecomp.core.tools.store.zusammen.datatypes.HealingEntity;
 
-
 /**
  * Created by ayalaben on 10/15/2017
  */
@@ -46,18 +44,13 @@ public class SetHealingFlag extends Command {
     public boolean execute(String[] args) {
         CommandLine cmd = parseArgs(args);
         String oldVersion = cmd.hasOption(VERSION_OPTION) ? cmd.getOptionValue(VERSION_OPTION) : null;
-
         VersionCassandraLoader versionCassandraLoader = new VersionCassandraLoader();
         ResultSet listItemVersion = versionCassandraLoader.listItemVersion();
-
         ArrayList<HealingEntity> healingEntities = new ArrayList<>();
-
-        listItemVersion.iterator().forEachRemaining(entry -> healingEntities.add(new HealingEntity(entry.getString(0),
-                entry.getString(1), entry.getString(2), true, oldVersion)));
-
+        listItemVersion.iterator().forEachRemaining(
+            entry -> healingEntities.add(new HealingEntity(entry.getString(0), entry.getString(1), entry.getString(2), true, oldVersion)));
         HealingHandler healingHandler = new HealingHandler();
         healingHandler.populateHealingTable(healingEntities);
-
         return true;
     }