summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_cnt
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 15:40:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commitb65017a2a7af290f6681da7b197a52efe83d5185 (patch)
tree06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_cnt
parent33ec740d1438c3dddf8e1974757ed05bb76425ca (diff)
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_cnt')
-rw-r--r--qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java3
-rw-r--r--qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java b/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java
index 215617d23fa9..fafd45873a62 100644
--- a/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java
+++ b/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java
@@ -87,8 +87,7 @@ public class ChaosContentProvider extends TestCase {
TestEnvironment tEnv = new TestEnvironment( oObj );
// adding relation for XContentProvider
- XContentIdentifierFactory CIF = (XContentIdentifierFactory)
- UnoRuntime.queryInterface(XContentIdentifierFactory.class, cntFactory);
+ XContentIdentifierFactory CIF = UnoRuntime.queryInterface(XContentIdentifierFactory.class, cntFactory);
tEnv.addObjRelation("FACTORY", CIF) ;
tEnv.addObjRelation("CONTENT1", "ftp://localhost") ;
diff --git a/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java b/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java
index 131b79d06d86..2b6929b97259 100644
--- a/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java
+++ b/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java
@@ -90,7 +90,7 @@ public class CntUnoDataContainer extends TestCase {
( "com.sun.star.ucb.DataContainer" );
// adding one child container
- XIndexContainer xIC = (XIndexContainer) UnoRuntime.queryInterface
+ XIndexContainer xIC = UnoRuntime.queryInterface
(XIndexContainer.class, oInterface) ;
Object child = xMSF.createInstance