diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java index 7dd897328c8b..915976c6d995 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java @@ -207,8 +207,8 @@ public class SvxShapePolyPolygon extends TestCase { Point[][] polygon = new Point[][] {square1, square2}; - ((XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, - oShape)).setPropertyValue("PolyPolygon", polygon) ; + UnoRuntime.queryInterface(XPropertySet.class, + oShape).setPropertyValue("PolyPolygon", polygon) ; oObj = oShape ; @@ -226,16 +226,14 @@ public class SvxShapePolyPolygon 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")); |