From ff1b2e293f6d91fa835e60ec7252fc10b648969c Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 23 Aug 2013 14:13:10 +0000
Subject: [PATCH] Small cleanup of use of maps, lists. Forgot to commit these changes with the previous commit
---
opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java b/opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java
index 422856a..75a4626 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java
+++ b/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);
--
Gitblit v1.10.0