summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java')
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java
index b0a6db52e0d6..15a00912a0fc 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java
@@ -170,7 +170,7 @@ public class SvxShapeCircle extends TestCase {
SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF()) ;
oShape = SOF.createShape(xDrawDoc,5000,5000,3000,3000,"Ellipse");
- XPropertySet props = (XPropertySet) UnoRuntime.queryInterface
+ XPropertySet props = UnoRuntime.queryInterface
(XPropertySet.class, oShape) ;
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape) ;
@@ -202,8 +202,7 @@ public class SvxShapeCircle 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 {
@@ -215,8 +214,7 @@ public class SvxShapeCircle 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"));