summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java')
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
index 592bf708d63b..ef07416e243d 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
@@ -178,7 +178,7 @@ public class OSingleSelectQueryComposer extends TestCase {
try {
xMSF = (XMultiServiceFactory)Param.getMSF();
- XNameAccess xNameAccess = (XNameAccess)UnoRuntime.queryInterface(
+ XNameAccess xNameAccess = UnoRuntime.queryInterface(
XNameAccess.class,
xMSF.createInstance("com.sun.star.sdb.DatabaseContext"));
// we use the first datasource
@@ -196,7 +196,7 @@ public class OSingleSelectQueryComposer extends TestCase {
log.println("Service 'SingleSelectQueryComposer' not supported");
}
- oInterface = (XInterface) xConn.createInstance( sServiceNames[0]);
+ oInterface = xConn.createInstance( sServiceNames[0]);
if (oInterface == null) {
log.println("Service wasn't created") ;
@@ -206,7 +206,7 @@ public class OSingleSelectQueryComposer extends TestCase {
Object oRowSet = xMSF.createInstance("com.sun.star.sdb.RowSet") ;
- XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface
+ XPropertySet xSetProp = UnoRuntime.queryInterface
(XPropertySet.class, oRowSet) ;
xSetProp.setPropertyValue("DataSourceName", "Bibliography") ;