Revision: 5596 http://jnode.svn.sourceforge.net/jnode/?rev=5596&view=rev Author: crawley Date: 2009-07-07 10:44:31 +0000 (Tue, 07 Jul 2009)
Log Message: ----------- Fixed egregious code style violations. Modified Paths: -------------- trunk/cli/src/commands/org/jnode/command/archive/ArchiveCommand.java Modified: trunk/cli/src/commands/org/jnode/command/archive/ArchiveCommand.java =================================================================== --- trunk/cli/src/commands/org/jnode/command/archive/ArchiveCommand.java 2009-07-07 10:24:20 UTC (rev 5595) +++ trunk/cli/src/commands/org/jnode/command/archive/ArchiveCommand.java 2009-07-07 10:44:31 UTC (rev 5596) @@ -161,7 +161,7 @@ if (forced) { file.delete(); } else { - if (prompt_yn(file + prompt_overwrite, true)) { + if (askUser(file + prompt_overwrite, true)) { file.delete(); } else { notice("Skipping " + file); @@ -212,7 +212,7 @@ if (obj != null) { try { obj.close(); - } catch (IOException _) { + } catch (IOException ex) { //ignore } } @@ -225,7 +225,7 @@ if (zfile != null) { try { zfile.close(); - } catch (IOException _) { + } catch (IOException ex) { // ignore } } @@ -241,7 +241,7 @@ * @param defaultY if {#code true}, the default answer is yes, otherwise no. * @return true if the user said yes, false if the user said no */ - protected boolean prompt_yn(String s, boolean defaultY) { + protected boolean askUser(String s, boolean defaultY) { int choice; // put a cap on the looping to prevent non-terminal stdin // from an infinite loop @@ -249,7 +249,7 @@ stdoutWriter.print(s); try { choice = stdinReader.read(); - } catch (IOException _) { + } catch (IOException ex) { throw new RuntimeException("Problem with stdin"); } stdoutWriter.println(); @@ -288,8 +288,8 @@ if ((outMode & OUT_ERROR) == OUT_ERROR) stderrWriter.println(s); } - protected void fatal(String s, int exit_code) { + protected void fatal(String s, int exitCode) { stderrWriter.println("Fatal error: " + s); - exit(exit_code); + exit(exitCode); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits