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/SwAccessibleEndnoteView.java | |
parent | 33ec740d1438c3dddf8e1974757ed05bb76425ca (diff) |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java index e16e1346f2ea..007f6a3171e8 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java @@ -66,8 +66,7 @@ public class SwAccessibleEndnoteView extends TestCase { XInterface oEndnote = null; log.println( "Creating a test environment" ); - XMultiServiceFactory msf = (XMultiServiceFactory) - UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); + XMultiServiceFactory msf = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); log.println("creating a endnote"); try { oEndnote = (XInterface) UnoRuntime.queryInterface(XInterface.class, @@ -81,8 +80,7 @@ public class SwAccessibleEndnoteView extends TestCase { XTextCursor oCursor = oText.createTextCursor(); log.println("inserting the footnote into text document"); - XTextContent xTC = (XTextContent) - UnoRuntime.queryInterface(XTextContent.class, oEndnote); + XTextContent xTC = UnoRuntime.queryInterface(XTextContent.class, oEndnote); try { oText.insertTextContent(oCursor, xTC, false); } catch (com.sun.star.lang.IllegalArgumentException e) { @@ -91,9 +89,8 @@ public class SwAccessibleEndnoteView extends TestCase { } XController xController = xTextDoc.getCurrentController(); - XViewSettingsSupplier xViewSetSup = (XViewSettingsSupplier) - UnoRuntime.queryInterface(XViewSettingsSupplier.class, - xController); + XViewSettingsSupplier xViewSetSup = UnoRuntime.queryInterface(XViewSettingsSupplier.class, + xController); XPropertySet xPropSet = xViewSetSup.getViewSettings(); try { @@ -114,8 +111,7 @@ public class SwAccessibleEndnoteView extends TestCase { throw new StatusException("Couldn't set propertyValue...", e); } - XModel aModel = (XModel) - UnoRuntime.queryInterface(XModel.class, xTextDoc); + XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); AccessibilityTools at = new AccessibilityTools(); |