diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-25 18:03:20 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-25 18:03:20 +0000 |
commit | 364c465628189a4f3dee6eac54ff48825c48e681 (patch) | |
tree | a7d51101d0fdfef43601b48965c2935059e617b6 /java/test | |
parent | comments (diff) | |
download | ice-364c465628189a4f3dee6eac54ff48825c48e681.tar.bz2 ice-364c465628189a4f3dee6eac54ff48825c48e681.tar.xz ice-364c465628189a4f3dee6eac54ff48825c48e681.zip |
removed spaces
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/Glacier/starter/CallbackClient.java | 12 | ||||
-rw-r--r-- | java/test/Glacier/starter/CallbackReceiverI.java | 2 | ||||
-rw-r--r-- | java/test/Ice/exceptions/AllTests.java | 84 | ||||
-rw-r--r-- | java/test/Ice/exceptions/Client.java | 4 | ||||
-rw-r--r-- | java/test/Ice/exceptions/Collocated.java | 4 | ||||
-rw-r--r-- | java/test/Ice/facets/Client.java | 4 | ||||
-rw-r--r-- | java/test/Ice/facets/Collocated.java | 4 | ||||
-rw-r--r-- | java/test/Ice/faultTolerance/AllTests.java | 6 | ||||
-rw-r--r-- | java/test/Ice/faultTolerance/Client.java | 6 | ||||
-rw-r--r-- | java/test/Ice/faultTolerance/Server.java | 2 | ||||
-rw-r--r-- | java/test/Ice/inheritance/Client.java | 4 | ||||
-rw-r--r-- | java/test/Ice/locationForward/AllTests.java | 2 | ||||
-rw-r--r-- | java/test/Ice/locationForward/Client.java | 8 | ||||
-rw-r--r-- | java/test/Ice/locationForward/Server.java | 2 | ||||
-rw-r--r-- | java/test/Ice/objects/Client.java | 4 | ||||
-rw-r--r-- | java/test/Ice/operations/Client.java | 8 | ||||
-rw-r--r-- | java/test/Ice/operations/Twoways.java | 2 | ||||
-rw-r--r-- | java/test/IceXML/encoding/Client.java | 4 |
18 files changed, 81 insertions, 81 deletions
diff --git a/java/test/Glacier/starter/CallbackClient.java b/java/test/Glacier/starter/CallbackClient.java index 4ecaf605fe5..092c65402b2 100644 --- a/java/test/Glacier/starter/CallbackClient.java +++ b/java/test/Glacier/starter/CallbackClient.java @@ -58,12 +58,12 @@ class CallbackClient extends Ice.Application { router = starter.startRouter("dummy", "abc123", privateKey, publicKey, routerCert); } - catch (Glacier.CannotStartRouterException ex) + catch(Glacier.CannotStartRouterException ex) { System.out.println(appName() + ": " + ex + ":\n" + ex.reason); return 1; } - catch (Glacier.InvalidPasswordException ex) + catch(Glacier.InvalidPasswordException ex) { System.out.println(appName() + ": " + ex); return 1; @@ -130,7 +130,7 @@ class CallbackClient extends Ice.Application twoway.initiateCallbackEx(twowayR, context); test(false); } - catch (CallbackException ex) + catch(CallbackException ex) { test(ex.someValue == 3.14); test(ex.someString.equals("3.14")); @@ -153,8 +153,8 @@ class CallbackClient extends Ice.Application } // If we use the glacier router, the exact exception reason gets // lost. - //catch (Ice.ConnectFailedException ex) - catch (Ice.UnknownLocalException ex) + //catch(Ice.ConnectFailedException ex) + catch(Ice.UnknownLocalException ex) { System.out.println("ok"); } @@ -168,7 +168,7 @@ class CallbackClient extends Ice.Application router.ice_ping(); test(false); } - catch (Ice.ConnectFailedException ex) + catch(Ice.ConnectFailedException ex) { System.out.println("ok"); } diff --git a/java/test/Glacier/starter/CallbackReceiverI.java b/java/test/Glacier/starter/CallbackReceiverI.java index b5d03d2e355..719468a492f 100644 --- a/java/test/Glacier/starter/CallbackReceiverI.java +++ b/java/test/Glacier/starter/CallbackReceiverI.java @@ -47,7 +47,7 @@ final class CallbackReceiverI extends CallbackReceiver return false; } } - catch (InterruptedException ex) + catch(InterruptedException ex) { } } diff --git a/java/test/Ice/exceptions/AllTests.java b/java/test/Ice/exceptions/AllTests.java index f7df5d288f6..5a0ff3c7eed 100644 --- a/java/test/Ice/exceptions/AllTests.java +++ b/java/test/Ice/exceptions/AllTests.java @@ -76,11 +76,11 @@ public class AllTests thrower.throwAasA(1); test(false); } - catch (A ex) + catch(A ex) { test(ex.a == 1); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -90,11 +90,11 @@ public class AllTests thrower.throwAorDasAorD(1); test(false); } - catch (A ex) + catch(A ex) { test(ex.a == 1); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -104,11 +104,11 @@ public class AllTests thrower.throwAorDasAorD(-1); test(false); } - catch (D ex) + catch(D ex) { test(ex.d == -1); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -118,12 +118,12 @@ public class AllTests thrower.throwBasB(1, 2); test(false); } - catch (B ex) + catch(B ex) { test(ex.a == 1); test(ex.b == 2); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -133,13 +133,13 @@ public class AllTests thrower.throwCasC(1, 2, 3); test(false); } - catch (C ex) + catch(C ex) { test(ex.a == 1); test(ex.b == 2); test(ex.c == 3); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -154,11 +154,11 @@ public class AllTests thrower.throwBasB(1, 2); test(false); } - catch (A ex) + catch(A ex) { test(ex.a == 1); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -168,12 +168,12 @@ public class AllTests thrower.throwCasC(1, 2, 3); test(false); } - catch (B ex) + catch(B ex) { test(ex.a == 1); test(ex.b == 2); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -194,11 +194,11 @@ public class AllTests thrower.throwBasA(1, 2); test(false); } - catch (Ice.NoUserExceptionFactoryException ex) + catch(Ice.NoUserExceptionFactoryException ex) { test(false); } - catch (A ex) + catch(A ex) { assert(ex instanceof B); } @@ -208,10 +208,10 @@ public class AllTests thrower.throwCasA(1, 2, 3); test(false); } - catch (Ice.NoUserExceptionFactoryException ex) + catch(Ice.NoUserExceptionFactoryException ex) { } - catch (A ex) + catch(A ex) { assert(ex instanceof C); } @@ -221,11 +221,11 @@ public class AllTests thrower.throwCasB(1, 2, 3); test(false); } - catch (Ice.NoUserExceptionFactoryException ex) + catch(Ice.NoUserExceptionFactoryException ex) { test(false); } - catch (B ex) + catch(B ex) { assert(ex instanceof C); } @@ -252,12 +252,12 @@ public class AllTests thrower.throwBasA(1, 2); test(false); } - catch (B ex) + catch(B ex) { test(ex.a == 1); test(ex.b == 2); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -267,13 +267,13 @@ public class AllTests thrower.throwCasA(1, 2, 3); test(false); } - catch (C ex) + catch(C ex) { test(ex.a == 1); test(ex.b == 2); test(ex.c == 3); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -283,13 +283,13 @@ public class AllTests thrower.throwCasB(1, 2, 3); test(false); } - catch (C ex) + catch(C ex) { test(ex.a == 1); test(ex.b == 2); test(ex.c == 3); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -306,10 +306,10 @@ public class AllTests thrower.throwUndeclaredA(1); test(false); } - catch (Ice.UnknownUserException ex) + catch(Ice.UnknownUserException ex) { } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -319,10 +319,10 @@ public class AllTests thrower.throwUndeclaredB(1, 2); test(false); } - catch (Ice.UnknownUserException ex) + catch(Ice.UnknownUserException ex) { } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -332,10 +332,10 @@ public class AllTests thrower.throwUndeclaredC(1, 2, 3); test(false); } - catch (Ice.UnknownUserException ex) + catch(Ice.UnknownUserException ex) { } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -353,11 +353,11 @@ public class AllTests thrower2.ice_ping(); test(false); } - catch (Ice.ObjectNotExistException ex) + catch(Ice.ObjectNotExistException ex) { test(ex.identity.equals(id)); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -373,11 +373,11 @@ public class AllTests thrower2.ice_ping(); test(false); } - catch (Ice.FacetNotExistException ex) + catch(Ice.FacetNotExistException ex) { test(ex.facet.equals("no such facet")); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -393,11 +393,11 @@ public class AllTests thrower2.noSuchOperation(); test(false); } - catch (Ice.OperationNotExistException ex) + catch(Ice.OperationNotExistException ex) { test(ex.operation.equals("noSuchOperation")); } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -412,10 +412,10 @@ public class AllTests thrower.throwLocalException(); test(false); } - catch (Ice.UnknownLocalException ex) + catch(Ice.UnknownLocalException ex) { } - catch (Exception ex) + catch(Exception ex) { test(false); } @@ -430,10 +430,10 @@ public class AllTests thrower.throwNonIceException(); test(false); } - catch (Ice.UnknownException ex) + catch(Ice.UnknownException ex) { } - catch (Exception ex) + catch(Exception ex) { test(false); } diff --git a/java/test/Ice/exceptions/Client.java b/java/test/Ice/exceptions/Client.java index 432645b2aec..399ed530b7e 100644 --- a/java/test/Ice/exceptions/Client.java +++ b/java/test/Ice/exceptions/Client.java @@ -29,7 +29,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -41,7 +41,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/exceptions/Collocated.java b/java/test/Ice/exceptions/Collocated.java index ef80955c7ab..1e2e924c5ec 100644 --- a/java/test/Ice/exceptions/Collocated.java +++ b/java/test/Ice/exceptions/Collocated.java @@ -34,7 +34,7 @@ public class Collocated communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -46,7 +46,7 @@ public class Collocated { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/facets/Client.java b/java/test/Ice/facets/Client.java index 405fb8c9eb7..fced38ddc54 100644 --- a/java/test/Ice/facets/Client.java +++ b/java/test/Ice/facets/Client.java @@ -29,7 +29,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -41,7 +41,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/facets/Collocated.java b/java/test/Ice/facets/Collocated.java index fb1996d31dc..12ae22f2d17 100644 --- a/java/test/Ice/facets/Collocated.java +++ b/java/test/Ice/facets/Collocated.java @@ -38,7 +38,7 @@ public class Collocated communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -50,7 +50,7 @@ public class Collocated { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/faultTolerance/AllTests.java b/java/test/Ice/faultTolerance/AllTests.java index 6ec8a18395f..a23cc946d65 100644 --- a/java/test/Ice/faultTolerance/AllTests.java +++ b/java/test/Ice/faultTolerance/AllTests.java @@ -65,7 +65,7 @@ public class AllTests obj.abort(); test(false); } - catch (Ice.SocketException ex) + catch(Ice.SocketException ex) { System.out.println("ok"); } @@ -80,7 +80,7 @@ public class AllTests obj.nonmutatingAbort(); test(false); } - catch (Ice.SocketException ex) + catch(Ice.SocketException ex) { System.out.println("ok"); } @@ -99,7 +99,7 @@ public class AllTests obj.ice_ping(); test(false); } - catch (Ice.SocketException ex) + catch(Ice.SocketException ex) { System.out.println("ok"); } diff --git a/java/test/Ice/faultTolerance/Client.java b/java/test/Ice/faultTolerance/Client.java index b3ca6f4620d..077b0fdcfe6 100644 --- a/java/test/Ice/faultTolerance/Client.java +++ b/java/test/Ice/faultTolerance/Client.java @@ -39,7 +39,7 @@ public class Client { port = Integer.parseInt(args[i]); } - catch (NumberFormatException ex) + catch(NumberFormatException ex) { ex.printStackTrace(); return 1; @@ -74,7 +74,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -86,7 +86,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/faultTolerance/Server.java b/java/test/Ice/faultTolerance/Server.java index c9a3b388600..043f29c7835 100644 --- a/java/test/Ice/faultTolerance/Server.java +++ b/java/test/Ice/faultTolerance/Server.java @@ -45,7 +45,7 @@ public class Server { port = Integer.parseInt(args[i]); } - catch (NumberFormatException ex) + catch(NumberFormatException ex) { System.err.println("Server: invalid port"); usage(); diff --git a/java/test/Ice/inheritance/Client.java b/java/test/Ice/inheritance/Client.java index 35e58cfc1da..f23040f699d 100644 --- a/java/test/Ice/inheritance/Client.java +++ b/java/test/Ice/inheritance/Client.java @@ -29,7 +29,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -41,7 +41,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/locationForward/AllTests.java b/java/test/Ice/locationForward/AllTests.java index 7ccae12c4e5..82b6ab4aa12 100644 --- a/java/test/Ice/locationForward/AllTests.java +++ b/java/test/Ice/locationForward/AllTests.java @@ -54,7 +54,7 @@ public class AllTests lastObj.ice_ping(); test(false); } - catch (Ice.SocketException ex) + catch(Ice.SocketException ex) { System.out.println("ok"); } diff --git a/java/test/Ice/locationForward/Client.java b/java/test/Ice/locationForward/Client.java index 7006363824e..7359dad8ace 100644 --- a/java/test/Ice/locationForward/Client.java +++ b/java/test/Ice/locationForward/Client.java @@ -41,7 +41,7 @@ public class Client { port = Integer.parseInt(args[i]); } - catch (NumberFormatException ex) + catch(NumberFormatException ex) { ex.printStackTrace(); return 1; @@ -53,7 +53,7 @@ public class Client { lastPort = Integer.parseInt(args[i]); } - catch (NumberFormatException ex) + catch(NumberFormatException ex) { ex.printStackTrace(); return 1; @@ -89,7 +89,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -101,7 +101,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/locationForward/Server.java b/java/test/Ice/locationForward/Server.java index fb635208ed2..f3c6cd53cf7 100644 --- a/java/test/Ice/locationForward/Server.java +++ b/java/test/Ice/locationForward/Server.java @@ -58,7 +58,7 @@ public class Server { port = Integer.parseInt(args[i]); } - catch (NumberFormatException ex) + catch(NumberFormatException ex) { System.err.println("Server: invalid port"); usage(); diff --git a/java/test/Ice/objects/Client.java b/java/test/Ice/objects/Client.java index 79d7ec73d97..46abfc61179 100644 --- a/java/test/Ice/objects/Client.java +++ b/java/test/Ice/objects/Client.java @@ -34,7 +34,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -46,7 +46,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/operations/Client.java b/java/test/Ice/operations/Client.java index fc8fc4e47f3..ef65544db53 100644 --- a/java/test/Ice/operations/Client.java +++ b/java/test/Ice/operations/Client.java @@ -23,11 +23,11 @@ public class Client myClass.opVoid(); throw new RuntimeException(); } - catch (Ice.ConnectFailedException ex) + catch(Ice.ConnectFailedException ex) { System.out.println("ok"); } - catch (Ice.ConnectionLostException ex) + catch(Ice.ConnectionLostException ex) { System.out.println("ok"); } @@ -46,7 +46,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -58,7 +58,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; diff --git a/java/test/Ice/operations/Twoways.java b/java/test/Ice/operations/Twoways.java index 78cea5f1472..b8dfe31212a 100644 --- a/java/test/Ice/operations/Twoways.java +++ b/java/test/Ice/operations/Twoways.java @@ -129,7 +129,7 @@ class Twoways c2.value.opVoid(); test(false); } - catch (Ice.ObjectNotExistException ex) + catch(Ice.ObjectNotExistException ex) { } diff --git a/java/test/IceXML/encoding/Client.java b/java/test/IceXML/encoding/Client.java index e174b59b0e2..93ce88f62fb 100644 --- a/java/test/IceXML/encoding/Client.java +++ b/java/test/IceXML/encoding/Client.java @@ -630,7 +630,7 @@ public class Client communicator = Ice.Util.initialize(args); status = run(args, communicator); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; @@ -642,7 +642,7 @@ public class Client { communicator.destroy(); } - catch (Ice.LocalException ex) + catch(Ice.LocalException ex) { ex.printStackTrace(); status = 1; |