diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 15:40:17 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | b65017a2a7af290f6681da7b197a52efe83d5185 (patch) | |
tree | 06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java | |
parent | 33ec740d1438c3dddf8e1974757ed05bb76425ca (diff) |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java index 5036a207fed0..ea4bf9c9b0ef 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java @@ -67,8 +67,7 @@ public class ScDrawPageObj extends TestCase { */ protected void cleanup( TestParameters tParam, PrintWriter log ) { log.println( " disposing xSheetDoc " ); - XComponent xComp = (XComponent) - UnoRuntime.queryInterface(XComponent.class, xDoc); + XComponent xComp = UnoRuntime.queryInterface(XComponent.class, xDoc); util.DesktopTools.closeDoc(xComp); } @@ -97,16 +96,14 @@ public class ScDrawPageObj extends TestCase { XShape oShape = null ; XDrawPages oDP = null; - XComponent xComp = (XComponent) - UnoRuntime.queryInterface(XComponent.class, xDoc); + XComponent xComp = UnoRuntime.queryInterface(XComponent.class, xDoc); // creation of testobject here // first we write what we are intend to do to log file log.println( "creating a test environment" ); try { log.println( "getting Drawpages" ); - XDrawPagesSupplier oDPS = (XDrawPagesSupplier) - UnoRuntime.queryInterface(XDrawPagesSupplier.class,xDoc); + XDrawPagesSupplier oDPS = UnoRuntime.queryInterface(XDrawPagesSupplier.class,xDoc); oDP = (XDrawPages) oDPS.getDrawPages(); oDP.insertNewByIndex(1); oDP.insertNewByIndex(2); |