summaryrefslogtreecommitdiff
path: root/qadevOOo/tests
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-20 16:06:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-20 21:18:38 +0100
commit4c7c5fe39aa7dfbc2d87a0d08cdf32dc2e0360e3 (patch)
treeed0b4c03d1e986373adfc313575d297b926884a6 /qadevOOo/tests
parentbd3649ce3a3eff4e4ededc60dcb277ba2ad469b7 (diff)
coverity#1327110 UrF: Unread field
Change-Id: I6147a86cbe216830a693c24654cfaf2e63d4601e
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java
index abddd0419622..515249282368 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java
@@ -69,9 +69,7 @@ import util.utils;
*/
public class JoinViewAccessibility extends TestCase {
XWindow xWindow = null;
- Object oDBSource = null;
String aFile = "";
- XConnection connection = null;
XIsolatedConnection isolConnection = null;
XComponent QueryComponent = null;
String user = "";
@@ -97,12 +95,11 @@ public class JoinViewAccessibility extends TestCase {
{
XInterface oObj = null;
- Object oDBSource = null;
Object newQuery = null;
XStorable store = null;
Param.getMSF().createInstance("com.sun.star.sdb.DatabaseContext");
- oDBSource = Param.getMSF()
+ Object oDBSource = Param.getMSF()
.createInstance("com.sun.star.sdb.DataSource");
newQuery = Param.getMSF().createInstance(
"com.sun.star.sdb.QueryDefinition");
@@ -153,17 +150,14 @@ public class JoinViewAccessibility extends TestCase {
XIsolatedConnection.class,
oDBSource);
- XConnection connection = null;
- XStatement statement = null;
-
final String tbl_name1 = "tst_table1";
final String tbl_name2 = "tst_table2";
final String col_name1 = "id1";
final String col_name2 = "id2";
util.utils.waitForEventIdle(Param.getMSF());
- connection = isolConnection.getIsolatedConnection (user, password);
- statement = connection.createStatement ();
+ XConnection connection = isolConnection.getIsolatedConnection (user, password);
+ XStatement statement = connection.createStatement ();
statement.executeUpdate ("drop table if exists " + tbl_name1);
statement.executeUpdate ("drop table if exists " + tbl_name2);
statement.executeUpdate ("create table " + tbl_name1 + " (" +