geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/commands ExitCommand.java
Date Sun, 24 Aug 2003 09:26:29 GMT
jdillon     2003/08/24 02:26:29

  Modified:    modules/twiddle/src/java/org/apache/geronimo/twiddle/commands
                        ExitCommand.java
  Log:
   o Remove usage of UnreachableStatementException
  
  Revision  Changes    Path
  1.6       +5 -3      incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/commands/ExitCommand.java
  
  Index: ExitCommand.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/twiddle/src/java/org/apache/geronimo/twiddle/commands/ExitCommand.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExitCommand.java	16 Aug 2003 15:14:12 -0000	1.5
  +++ ExitCommand.java	24 Aug 2003 09:26:29 -0000	1.6
  @@ -67,7 +67,6 @@
   import org.apache.commons.cli.ParseException;
   
   import org.apache.geronimo.common.NullArgumentException;
  -import org.apache.geronimo.common.UnreachableStatementException;
   
   import org.apache.geronimo.twiddle.command.Command;
   import org.apache.geronimo.twiddle.command.CommandInfo;
  @@ -137,6 +136,9 @@
           out.println("Exiting with status code: " + statusCode);
           System.exit(statusCode);
           
  -        throw new UnreachableStatementException();
  +        // Will never reach here
  +        assert false;
  +        
  +        return Command.FAILURE;
       }
   }
  
  
  

Mime
View raw message