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

Jean-Noel Rouvignac
06.42.2015 e79461c53adce17f83f30954f8a03d67bb761a1f
opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
@@ -79,14 +79,10 @@
 * will send a ProgressUpdateEvent.
 *
 * This class is supposed to be fully independent of the graphical layout.
 *
 */
public class WebStartInstaller extends Installer {
  private final Map<ProgressStep, Integer> hmRatio =
      new HashMap<ProgressStep, Integer>();
  private final Map<ProgressStep, LocalizableMessage> hmSummary =
      new HashMap<ProgressStep, LocalizableMessage>();
  private final Map<ProgressStep, Integer> hmRatio = new HashMap<>();
  private final Map<ProgressStep, LocalizableMessage> hmSummary = new HashMap<>();
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
@@ -99,10 +95,7 @@
    setCurrentProgressStep(InstallProgressStep.NOT_STARTED);
  }
  /**
   * Actually performs the install in this thread.  The thread is blocked.
   *
   */
  /** Actually performs the install in this thread.  The thread is blocked. */
  @Override
  public void run()
  {
@@ -368,8 +361,7 @@
     * extracting, the value for downloading will be the double of the value for
     * extracting.
     */
    Map<ProgressStep, Integer> hmTime =
        new HashMap<ProgressStep, Integer>();
    Map<ProgressStep, Integer> hmTime = new HashMap<>();
    hmTime.put(InstallProgressStep.DOWNLOADING, 30);
    hmTime.put(InstallProgressStep.EXTRACTING, 15);
    hmTime.put(InstallProgressStep.CONFIGURING_SERVER, 5);
@@ -384,8 +376,7 @@
    hmTime.put(InstallProgressStep.INITIALIZE_REPLICATED_SUFFIXES, 25);
    int totalTime = 0;
    List<InstallProgressStep> steps =
        new ArrayList<InstallProgressStep>();
    List<InstallProgressStep> steps = new ArrayList<>();
    totalTime += hmTime.get(InstallProgressStep.DOWNLOADING);
    steps.add(InstallProgressStep.DOWNLOADING);
    totalTime += hmTime.get(InstallProgressStep.EXTRACTING);