Skip to content

Commit

Permalink
Fix type conversions when producing command line calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarszk committed Jun 3, 2018
1 parent 8b7f617 commit 65a935a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private void writeScript() {
Log.level0("ERROR WRITING TO TEMP FOLDER");
}

Statics.LiveSendCommand = new ArrayList();
Statics.LiveSendCommand = new ArrayList<String>();
Statics.LiveSendCommand.add("gksudo");
Statics.LiveSendCommand.add("-D");
Statics.LiveSendCommand.add("UnBrickable Resurrector");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void run(){
}

} catch (IOException ex) {
String[] ArrayList =(String[])Statics.LiveSendCommand.toArray();
String[] ArrayList = Statics.LiveSendCommand.toArray(new String[0]);
log.level2("Problem while executing"+ ArrayList +
" in Shell.liveShellCommand()");
Logger.getLogger(Shell.class.getName()).log(Level.SEVERE, null, ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Statics(){
*/
static Shell shellCommand = new Shell();
static Log Log = new Log();
public static ArrayList LiveSendCommand = new ArrayList();
public static ArrayList<String> LiveSendCommand = new ArrayList();
public static PrintWriter OutFile;
public static boolean LogCreated=false; //used by log class
public static LowLevelUnbrickOneClickView HeimdallOneClickView;
Expand Down

0 comments on commit 65a935a

Please sign in to comment.