summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.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/_svx/SvxShapeDimensioning.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/_svx/SvxShapeDimensioning.java')
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java
index 0e6ad96e57ac..57a56803f18b 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java
@@ -132,16 +132,14 @@ public class SvxShapeDimensioning extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
log.println( "adding two styles as ObjRelation for ShapeDescriptor" );
- XPropertySet oShapeProps = (XPropertySet)
- UnoRuntime.queryInterface(XPropertySet.class,oObj);
+ XPropertySet oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oObj);
XStyle aStyle = null;
try {
aStyle = (XStyle) AnyConverter.toObject(
new Type(XStyle.class),oShapeProps.getPropertyValue("Style"));
} catch (Exception e) {}
tEnv.addObjRelation("Style1",aStyle);
- oShapeProps = (XPropertySet)
- UnoRuntime.queryInterface(XPropertySet.class,oShape);
+ oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape);
try {
aStyle = (XStyle) AnyConverter.toObject(
new Type(XStyle.class),oShapeProps.getPropertyValue("Style"));