summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-29 10:08:15 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:05 +0200
commitf9fa0dd66b830ff21c4a2dcd201151a4e9ca2de8 (patch)
tree1c1a421028cbef391af4f2886eac2677f75c5ee7 /unotest
parent531a052bdc1eff3d66fd17ec6f7e9f373cbd1404 (diff)
Java5 updates - update code to use generics
This is all of the code I missed in my first set of patches. Change-Id: I8c7c9e5ac28dc3c2f3ac062c806fbf0787c997bd
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/java/org/openoffice/test/tools/OfficeDocument.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
index 5905bb9a7300..367bca1c3124 100644
--- a/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
+++ b/unotest/source/java/org/openoffice/test/tools/OfficeDocument.java
@@ -147,7 +147,7 @@ public class OfficeDocument
}
/* ------------------------------------------------------------------ */
- public Object query( Class aInterfaceClass )
+ public <T> T query( Class<T> aInterfaceClass )
{
return UnoRuntime.queryInterface( aInterfaceClass, m_documentComponent );
}