summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 16:08:28 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commit453d7edc424d6652e209ace4915d96193a79be71 (patch)
tree0a6af928cf7d1fd90ec995ae7d114f08eaf617fd /qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
parentb65017a2a7af290f6681da7b197a52efe83d5185 (diff)
Java5 update - convert more code to use generics:wq
Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
index f2a37f9fb723..4206440fcaf5 100644
--- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
@@ -77,7 +77,7 @@ public class ScUniqueCellFormatsEnumeration extends TestCase {
XIndexAccess.class, xSheetDoc.getSheets());
try {
- oSheet = (XSpreadsheet) UnoRuntime.queryInterface(
+ oSheet = UnoRuntime.queryInterface(
XSpreadsheet.class, xIA.getByIndex(0));
} catch (com.sun.star.lang.WrappedTargetException e) {
e.printStackTrace(log);
@@ -114,7 +114,7 @@ public class ScUniqueCellFormatsEnumeration extends TestCase {
protected void changeColor(String RangeName, int r, int g, int b) {
XCellRange xRange = oSheet.getCellRangeByName(RangeName);
- XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(
+ XPropertySet xPropertySet = UnoRuntime.queryInterface(
XPropertySet.class, xRange);
Color c = new Color(r, g, b);
int c2int = 16777216 + c.hashCode();