summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sd/SdXShape.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sd/SdXShape.java')
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXShape.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sd/SdXShape.java b/qadevOOo/tests/java/mod/_sd/SdXShape.java
index 41c3b55b9ef7..7ca5704ce3a3 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXShape.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXShape.java
@@ -156,14 +156,13 @@ public class SdXShape extends TestCase {
XShape oShape = SOF.createShape
(xDrawDoc, 3000, 4500, 15000, 1000, "Ellipse");
oShapes.add((XShape) oObj);
- oShapes.add((XShape) oShape);
+ oShapes.add(oShape);
log.println( "creating a new environment for XShape object" );
TestEnvironment tEnv = new TestEnvironment( oObj );
log.println( "adding two style 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(
@@ -184,8 +183,7 @@ public class SdXShape extends TestCase {
}
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"));