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/_sw/SwXTextGraphicObjects.java | |
parent | Java5 update - Convert Hashtable to HashMap (diff) | |
download | core-b65017a2a7af290f6681da7b197a52efe83d5185.tar.gz core-b65017a2a7af290f6681da7b197a52efe83d5185.zip |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java index 74d4081f7eac..3a0ec080f562 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java @@ -113,8 +113,7 @@ public class SwXTextGraphicObjects extends TestCase { XText the_text = xTextDoc.getText(); XTextCursor the_cursor = the_text.createTextCursor(); - XTextContent the_content = (XTextContent) - UnoRuntime.queryInterface(XTextContent.class,oObj); + XTextContent the_content = UnoRuntime.queryInterface(XTextContent.class,oObj); log.println( "inserting graphic" ); try { @@ -141,9 +140,8 @@ public class SwXTextGraphicObjects extends TestCase { throw new StatusException("Couldn't set property 'GraphicURL'", e ); } - XTextGraphicObjectsSupplier xTGS = (XTextGraphicObjectsSupplier) - UnoRuntime.queryInterface(XTextGraphicObjectsSupplier.class, - xTextDoc); + XTextGraphicObjectsSupplier xTGS = UnoRuntime.queryInterface(XTextGraphicObjectsSupplier.class, + xTextDoc); oObj = xTGS.getGraphicObjects(); TestEnvironment tEnv = new TestEnvironment( oObj ); |