diff options
Diffstat (limited to 'jurt/test/com/sun/star')
-rw-r--r-- | jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java | 2 | ||||
-rw-r--r-- | jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java index 2e8313840a41..1a0181b3eee3 100644 --- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java +++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java @@ -340,7 +340,7 @@ public final class Marshaling_Test { result = compareInterfaces((XInterface)op1, (XInterface)op2); else if(op1.getClass() == String.class && op2.getClass() == String.class) // is it a String ? - result = ((String)op1).equals((String)op2); + result = ((String)op1).equals(op2); else if(op1.getClass() == Type.class && op2.getClass() == Type.class) // types? result = op1.equals(op2); diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java index d92e368622c0..b1be2aea8535 100644 --- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java +++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java @@ -81,7 +81,7 @@ public final class Protocol_Test { new Object[] { "hallo" }); Message iMessage = iReceiver.readMessage(); Object[] t_params = iMessage.getArguments(); - assertEquals("hallo", (String)t_params[0]); + assertEquals("hallo", t_params[0]); // send a reply iReceiver.writeReply(false, new ThreadId(new byte[] { 0, 1 }), null); @@ -184,7 +184,7 @@ public final class Protocol_Test { Object[] t_params = iMessage.getArguments(); - assertEquals("hallo", (String)t_params[0]); + assertEquals("hallo", t_params[0]); assertEquals("inOutString", ((String [])t_params[2])[0]); |