summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
index 5287d80017c6..0bc8ce938378 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
@@ -97,8 +97,7 @@ public class SwXDocumentIndexMark extends TestCase {
XText oText = xTextDoc.getText();
XTextCursor oCursor = oText.createTextCursor();
- XMultiServiceFactory oDocMSF = (XMultiServiceFactory)
- UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc);
+ XMultiServiceFactory oDocMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc);
Object oDIM = null;
Object instance = null;
@@ -111,8 +110,7 @@ public class SwXDocumentIndexMark extends TestCase {
log.println("Error:" + e);
}
- XDocumentIndexMark xDIM = (XDocumentIndexMark)
- UnoRuntime.queryInterface(XDocumentIndexMark.class, oDIM);
+ XDocumentIndexMark xDIM = UnoRuntime.queryInterface(XDocumentIndexMark.class, oDIM);
try {
oText.insertTextContent(oCursor, xDIM, false);
@@ -124,8 +122,7 @@ public class SwXDocumentIndexMark extends TestCase {
TestEnvironment tEnv = new TestEnvironment(xDIM);
- tEnv.addObjRelation("CONTENT", (XTextContent)
- UnoRuntime.queryInterface(XTextContent.class,instance));
+ tEnv.addObjRelation("CONTENT", UnoRuntime.queryInterface(XTextContent.class,instance));
tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor());
return tEnv;