Remove unnecessary casts

This commit is contained in:
Chris Beams
2010-07-29 19:18:34 +02:00
parent 283d6559b4
commit ef57164a1b
7 changed files with 7 additions and 7 deletions

View File

@@ -121,7 +121,7 @@ public class Background {
(appendErr == true ? ">>" : " >") +
Escape.escape(errFile.getAbsolutePath()));
Runtime.getRuntime().exec((String [])tmpCmd.toArray(cmd));
Runtime.getRuntime().exec(tmpCmd.toArray(cmd));
}
public static void main(String[] args) throws Exception {

View File

@@ -327,7 +327,7 @@ public class Execute {
String key = env[i].substring(0, pos+1);
int size = osEnv.size();
for (int j = 0; j < size; j++) {
if (((String)osEnv.elementAt(j)).startsWith(key)) {
if ((osEnv.elementAt(j)).startsWith(key)) {
osEnv.removeElementAt(j);
break;
}