From: markt Date: Sat, 10 Jul 2010 21:33:16 +0000 (+0000) Subject: Trivial cleanup no functional change X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3733db6e7d95bbebaae51fa5231960bfde1dcf32;p=tomcat7.0 Trivial cleanup no functional change git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@962921 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/tribes/demos/EchoRpcTest.java b/test/org/apache/catalina/tribes/demos/EchoRpcTest.java index fec7c5dd9..c7ef0b7e0 100644 --- a/test/org/apache/catalina/tribes/demos/EchoRpcTest.java +++ b/test/org/apache/catalina/tribes/demos/EchoRpcTest.java @@ -133,8 +133,9 @@ public class EchoRpcTest implements RpcCallback, Runnable { int options = RpcChannel.ALL_REPLY; long timeout = 15000; String message = "EchoRpcMessage"; - if ( args.length == 0 ) { - args = new String[] {"-help"}; + if (args.length == 0) { + usage(); + System.exit(1); } for (int i = 0; i < args.length; i++) { if ("-threads".equals(args[i])) { @@ -161,8 +162,7 @@ public class EchoRpcTest implements RpcCallback, Runnable { else if ( "majority".equals(args[i]) ) options = RpcChannel.MAJORITY_REPLY; } else if ("-debug".equals(args[i])) { // Not used - } else if ("-help".equals(args[i])) - { + } else if ("-help".equals(args[i])) { usage(); System.exit(1); }