< prev index next >

src/com/sun/javatest/exec/ExecToolManager.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -428,14 +428,14 @@
         } catch (Exception e) {
             throw new Fault(i18n, "mgr.restoreFaultWD", e.getMessage());
         }
     }
 
-    private static InterviewParameters getInterview(Map m) throws Interview.Fault {
-        String tsp = (String) (m.get("testSuite"));
-        String wdp = (String) (m.get("workDir"));
-        String cfp = (String) (m.get("config"));
+    private static InterviewParameters getInterview(Map<String, String> m) throws Interview.Fault {
+        String tsp = (m.get("testSuite"));
+        String wdp = (m.get("workDir"));
+        String cfp = (m.get("config"));
         if (isEmpty(tsp) && isEmpty(wdp) && isEmpty(cfp))
             return null;
 
         return InterviewParameters.open(tsp, wdp, cfp);
     }

@@ -526,11 +526,11 @@
     void addToFileHistory(WorkDirectory wd) {
         getDesktop().addToFileHistory(wd.getRoot(), workDirOpener);
     }
 
     void showError(String key) {
-        showError(key, (Object[]) null);
+        showError(key, null);
     }
 
     void showError(String key, Object arg) {
         showError(key, new Object[] { arg });
     }
< prev index next >