summaryrefslogtreecommitdiff
path: root/jurt/test/com/sun/star/lib/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-28 11:27:57 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:03 +0200
commit7af400558072e2f328f078e39a121a95bb928804 (patch)
tree464515102ce5d6cad3b5a304e77737532d206e83 /jurt/test/com/sun/star/lib/uno
parent9def9b4674b9610004e915635578d26a48d98300 (diff)
Java5 update - convert code to use generics
Change-Id: Iff078cea287d0c508d2442d65cd9314ec3231c15
Diffstat (limited to 'jurt/test/com/sun/star/lib/uno')
-rw-r--r--jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test.java4
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java10
2 files changed, 6 insertions, 8 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test.java b/jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test.java
index 9fcb929c56fc..d8134efbd69f 100644
--- a/jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test.java
@@ -65,7 +65,7 @@ public final class ProxyFactory_Test {
}
private void testExceptions(TestRequestHandler handler, Method method,
- Object obj, Object[] args, Class[] exceptions)
+ Object obj, Object[] args, Class<?>[] exceptions)
throws Exception
{
for (int i = 0; i < exceptions.length; ++i) {
@@ -75,7 +75,7 @@ public final class ProxyFactory_Test {
}
private void testExceptionType(Method method, Object obj, Object[] args,
- Class exception) throws Exception {
+ Class<?> exception) throws Exception {
try {
method.invoke(obj, args);
assertNull(exception);
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java
index c7b90f3c8d37..87af592acff5 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java
@@ -146,9 +146,8 @@ public final class JobQueue_Test {
jobQueue.putJob(new Job(workAt, __iReceiver,
new Message(
null, true, "oid", __workAt_td,
- ((MethodDescription)
- __workAt_td.getMethodDescription(
- "notifyme")),
+ __workAt_td.getMethodDescription(
+ "notifyme"),
true, null, false, null, null)),
null);
while (!workAt._notified) {
@@ -171,8 +170,7 @@ public final class JobQueue_Test {
new Job(workAt, __iReceiver,
new Message(
null, true, "oid", __workAt_td,
- ((MethodDescription)
- __workAt_td.getMethodDescription("notifyme")),
+ __workAt_td.getMethodDescription("notifyme"),
true, null, false, null, null)),
null);
while (!workAt._notified) {
@@ -186,7 +184,7 @@ public final class JobQueue_Test {
JobQueue jobQueue) {
Message iMessage = new Message(
null, true, "oid", __workAt_td,
- (MethodDescription) __workAt_td.getMethodDescription(operation),
+ __workAt_td.getMethodDescription(operation),
true, null, false, null, null);
for (int i = 0; i < TestWorkAt.MESSAGES; ++ i) {
Thread.yield(); // force scheduling