mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
23.13.2013 ff1b2e293f6d91fa835e60ec7252fc10b648969c
Small cleanup of use of maps, lists. Forgot to commit these changes with the previous commit
1 files modified
14 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java 14 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java
@@ -36,6 +36,8 @@
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.security.KeyStoreException;
@@ -70,12 +72,12 @@
public class OfflineInstaller extends Installer
{
  /* This map contains the ratio associated with each step */
  private final HashMap<InstallProgressStep, Integer> hmRatio =
      new HashMap<InstallProgressStep, Integer>();
  private final Map<ProgressStep, Integer> hmRatio =
      new HashMap<ProgressStep, Integer>();
  /* This map contains the summary associated with each step */
  private final HashMap<InstallProgressStep, Message> hmSummary =
      new HashMap<InstallProgressStep, Message>();
  private final Map<ProgressStep, Message> hmSummary =
      new HashMap<ProgressStep, Message>();
  private ApplicationException runError;
@@ -454,7 +456,7 @@
     * extracting, the value for downloading will be the double of the value for
     * extracting.
     */
    HashMap<ProgressStep, Integer> hmTime =
    Map<ProgressStep, Integer> hmTime =
        new HashMap<ProgressStep, Integer>();
    hmTime.put(InstallProgressStep.CONFIGURING_SERVER, 5);
    hmTime.put(InstallProgressStep.CREATING_BASE_ENTRY, 10);
@@ -468,7 +470,7 @@
    hmTime.put(InstallProgressStep.INITIALIZE_REPLICATED_SUFFIXES, 25);
    int totalTime = 0;
    ArrayList<InstallProgressStep> steps =
    List<InstallProgressStep> steps =
        new ArrayList<InstallProgressStep>();
    totalTime += hmTime.get(InstallProgressStep.CONFIGURING_SERVER);
    steps.add(InstallProgressStep.CONFIGURING_SERVER);