diff --git a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/LowLevelUnbrickOneClickView.java b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/LowLevelUnbrickOneClickView.java index e62bfe8..d972401 100644 --- a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/LowLevelUnbrickOneClickView.java +++ b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/LowLevelUnbrickOneClickView.java @@ -363,7 +363,7 @@ private void writeScript() { Log.level0("ERROR WRITING TO TEMP FOLDER"); } - Statics.LiveSendCommand = new ArrayList(); + Statics.LiveSendCommand = new ArrayList(); Statics.LiveSendCommand.add("gksudo"); Statics.LiveSendCommand.add("-D"); Statics.LiveSendCommand.add("UnBrickable Resurrector"); diff --git a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Shell.java b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Shell.java index a65984f..3bbd74e 100644 --- a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Shell.java +++ b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Shell.java @@ -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); diff --git a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Statics.java b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Statics.java index 3843323..5f35623 100644 --- a/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Statics.java +++ b/GalaxySFrontend/LowLevelUnbrick/src/com/AdamOutler/LowLevelUnBrick/Statics.java @@ -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 LiveSendCommand = new ArrayList(); public static PrintWriter OutFile; public static boolean LogCreated=false; //used by log class public static LowLevelUnbrickOneClickView HeimdallOneClickView;