diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 16:08:28 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | 453d7edc424d6652e209ace4915d96193a79be71 (patch) | |
tree | 0a6af928cf7d1fd90ec995ae7d114f08eaf617fd /qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java | |
parent | Java5 update - usage generics where possible (diff) | |
download | core-453d7edc424d6652e209ace4915d96193a79be71.tar.gz core-453d7edc424d6652e209ace4915d96193a79be71.zip |
Java5 update - convert more code to use generics:wq
Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java index 9658c523cc7c..94cd1fc0a0d6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java @@ -138,8 +138,7 @@ public class ScSheetLinkObj extends TestCase { SL.link(sURL, "Sheet1", "", "", com.sun.star.sheet.SheetLinkMode.VALUE); // Getting links. - XPropertySet docProps = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); + XPropertySet docProps = UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); Object oLinks = null; try { oLinks = docProps.getPropertyValue("SheetLinks"); @@ -151,8 +150,7 @@ public class ScSheetLinkObj extends TestCase { throw new StatusException("Couldn't get SheetLinks", e); } - XNameAccess links = (XNameAccess) - UnoRuntime.queryInterface(XNameAccess.class, oLinks); + XNameAccess links = UnoRuntime.queryInterface(XNameAccess.class, oLinks); String[] names = links.getElementNames(); |