summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sc/ScStyleObj.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/ScStyleObj.java
parentJava5 update - usage generics where possible (diff)
downloadcore-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/ScStyleObj.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScStyleObj.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleObj.java
index e5d782628a06..9707e0e567f2 100644
--- a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScStyleObj.java
@@ -160,9 +160,9 @@ public class ScStyleObj extends TestCase {
e.printStackTrace(log);
throw new StatusException("Couldn't create instance", e);
}
- XStyle oMyStyle = (XStyle)UnoRuntime.queryInterface(XStyle.class, oInt);
+ XStyle oMyStyle = UnoRuntime.queryInterface(XStyle.class, oInt);
- XNameContainer oStyleFamilyNameContainer = (XNameContainer)UnoRuntime.
+ XNameContainer oStyleFamilyNameContainer = UnoRuntime.
queryInterface(XNameContainer.class, oStyleFamilyNameAccess);
try {
@@ -208,8 +208,7 @@ public class ScStyleObj extends TestCase {
throw new StatusException("Couldn't get spreadsheet by index", e);
}
- XPropertySet xProp = (XPropertySet)
- UnoRuntime.queryInterface(XPropertySet.class, aCell);
+ XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class, aCell);
try {
xProp.setPropertyValue("CellStyle", oMyStyle.getName());
@@ -233,7 +232,7 @@ public class ScStyleObj extends TestCase {
tEnv.addObjRelation("PoolStyle", oStyle);
tEnv.addObjRelation("PropertyNames", getPropertyNames
- ((XPropertySet) UnoRuntime.queryInterface
+ (UnoRuntime.queryInterface
(XPropertySet.class, oMyStyle)));
return tEnv;