From 453d7edc424d6652e209ace4915d96193a79be71 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Jun 2012 16:08:28 +0200 Subject: Java5 update - convert more code to use generics:wq Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e --- qadevOOo/tests/java/mod/_svx/GraphicExporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qadevOOo/tests/java/mod/_svx/GraphicExporter.java') diff --git a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java index bbabd04c83e9..d4d430a8d637 100644 --- a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java +++ b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java @@ -141,7 +141,7 @@ public class GraphicExporter extends TestCase { "GraphicObject"); DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc, 0)).add(oShape); - XPropertySet oShapeProps = (XPropertySet) UnoRuntime.queryInterface( + XPropertySet oShapeProps = UnoRuntime.queryInterface( XPropertySet.class, oShape); XComponent xComp = null; @@ -153,7 +153,7 @@ public class GraphicExporter extends TestCase { oShape); XExporter xEx = UnoRuntime.queryInterface( - XExporter.class, (XInterface) go); + XExporter.class, go); xEx.setSourceDocument(xComp); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); -- cgit