From: markt Date: Mon, 9 Feb 2009 19:53:28 +0000 (+0000) Subject: Fix various Eclipse warnings. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f3ddc4c78271d1d7f888e9f6d4841a6c9632ca79;p=tomcat7.0 Fix various Eclipse warnings. Convert tabs to spaces. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@742708 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/tribes/demos/CoordinationDemo.java b/test/org/apache/catalina/tribes/demos/CoordinationDemo.java index 94ae8d679..8668da303 100644 --- a/test/org/apache/catalina/tribes/demos/CoordinationDemo.java +++ b/test/org/apache/catalina/tribes/demos/CoordinationDemo.java @@ -46,6 +46,7 @@ public class CoordinationDemo { * Construct and show the application. */ public CoordinationDemo() { + // Default constructor } public void init() { @@ -312,7 +313,9 @@ public class CoordinationDemo { status = "Start failed:"+x.getMessage(); error = x; startstatus = "failed"; - try { channel.stop(GroupChannel.DEFAULT);}catch(Exception ignore){} + try { channel.stop(Channel.DEFAULT);}catch(Exception ignore){ + // Ignore + } channel = null; interceptor = null; } @@ -351,7 +354,9 @@ public class CoordinationDemo { int type = event.getEventType(); boolean display = VIEW_EVENTS[type]; if ( display ) parent.printScreen(); - try { Thread.sleep(SLEEP_TIME); }catch ( Exception x){} + try { Thread.sleep(SLEEP_TIME); }catch ( Exception x){ + // Ignore + } } }; channel.addInterceptor(interceptor); diff --git a/test/org/apache/catalina/tribes/demos/EchoRpcTest.java b/test/org/apache/catalina/tribes/demos/EchoRpcTest.java index 7dac0d79f..22ce16142 100644 --- a/test/org/apache/catalina/tribes/demos/EchoRpcTest.java +++ b/test/org/apache/catalina/tribes/demos/EchoRpcTest.java @@ -96,8 +96,10 @@ public class EchoRpcTest implements RpcCallback, Runnable { for ( int i=0; i 0 ) try {size=Integer.parseInt(args[0]);}catch(Exception x){} + if (args.length > 0 ) try {size=Integer.parseInt(args[0]);}catch(Exception x){ /* Ignore */ } XByteBuffer xbuf = new XByteBuffer(43800,true); ServerSocket srvSocket = new ServerSocket(9999); System.out.println("Listening on 9999"); @@ -50,7 +50,7 @@ public class SocketTribesReceive { try { Thread.sleep(1000); printStats(start, mb, count, df, total); - }catch ( Exception x ) {} + }catch ( Exception x ) { /* Ignore */ } } } }; diff --git a/test/org/apache/catalina/tribes/test/transport/SocketValidateReceive.java b/test/org/apache/catalina/tribes/test/transport/SocketValidateReceive.java index 4c3fe40d1..e6193be5d 100644 --- a/test/org/apache/catalina/tribes/test/transport/SocketValidateReceive.java +++ b/test/org/apache/catalina/tribes/test/transport/SocketValidateReceive.java @@ -35,7 +35,7 @@ public class SocketValidateReceive { public static void main(String[] args) throws Exception { int size = 43800; - if (args.length > 0 ) try {size=Integer.parseInt(args[0]);}catch(Exception x){} + if (args.length > 0 ) try {size=Integer.parseInt(args[0]);}catch(Exception x){ /* Ignore */ } ServerSocket srvSocket = new ServerSocket(9999); System.out.println("Listening on 9999"); @@ -49,7 +49,7 @@ public class SocketValidateReceive { try { Thread.sleep(1000); printStats(start, mb, count, df, total); - }catch ( Exception x ) {} + }catch ( Exception x ) { /* Ignore */ } } } };