diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java b/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java index d07f60b0a190..88f60d43573a 100644 --- a/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java +++ b/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java @@ -60,8 +60,7 @@ public class _XStandaloneDocumentInfo extends MultiMethodTest { public void _storeIntoURL() { try { oObj.loadFromURL(url); - XPropertySet propSet = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class, oObj); + XPropertySet propSet = UnoRuntime.queryInterface(XPropertySet.class, oObj); oldProp = (String)propSet.getPropertyValue("Author"); newProp = oldProp + "_"; propSet.setPropertyValue("Author", newProp); @@ -98,8 +97,7 @@ public class _XStandaloneDocumentInfo extends MultiMethodTest { requiredMethod("storeIntoURL()"); try { oObj.loadFromURL(url); - XPropertySet propSet = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class, oObj); + XPropertySet propSet = UnoRuntime.queryInterface(XPropertySet.class, oObj); String resProp = (String)propSet.getPropertyValue("Author"); log.println("Was: '" + oldProp + "',Set: '" + newProp + "', New: " + resProp + "'"); |