summaryrefslogtreecommitdiff
path: root/jurt/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-20 17:05:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-20 19:04:33 +0100
commit8bfe47960f60e1dc2e6bcf0f3c3f7e43dfd3fc0b (patch)
tree12399f5232ff90f000bb58e213629140e564f0ce /jurt/test
parentf906ac27761332580b769f5f90d1f6bbd7f93701 (diff)
Java5 updates - convert to generics
Change-Id: I039e51958865a7ea000034e7bf765f64d49689cd
Diffstat (limited to 'jurt/test')
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test.java4
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]);