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/ScLabelRangesObj.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/_sc/ScLabelRangesObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java index e8e868c697b9..d9db0e49d36d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java @@ -77,8 +77,7 @@ public class ScLabelRangesObj extends TestCase { */ protected void cleanup( TestParameters tParam, PrintWriter log ) { log.println( " disposing xSheetDoc " ); - XComponent oComp = (XComponent) - UnoRuntime.queryInterface (XComponent.class, xSheetDoc) ; + XComponent oComp = UnoRuntime.queryInterface (XComponent.class, xSheetDoc) ; util.DesktopTools.closeDoc(oComp); } @@ -107,8 +106,7 @@ public class ScLabelRangesObj extends TestCase { XPropertySet docProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); Object ranges = docProps.getPropertyValue("ColumnLabelRanges"); - XLabelRanges lRanges = (XLabelRanges) - UnoRuntime.queryInterface(XLabelRanges.class, ranges); + XLabelRanges lRanges = UnoRuntime.queryInterface(XLabelRanges.class, ranges); log.println("Adding at least one element for ElementAccess interface"); CellRangeAddress aRange2 = new CellRangeAddress((short)0, 0, 1, 0, 6); |