Remove unnecessary casts
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user