summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-18 11:03:04 +0200
committerNoel Grandin <noel@peralex.com>2015-01-05 08:23:30 +0200
commit46540d08b16f0e2e663734506cc072fe868ece82 (patch)
treebaca7dfe2e192ef2dd986cb641a45051f0612fb3 /dbaccess
parenta49b2ba1a6a9467aa75d320b45671ae1e87314d3 (diff)
java: these fields can become local variables
found by PMD Change-Id: Id852cfec984a181b91aca1c00a41e342b720a4bf
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/qa/complex/dbaccess/DatabaseApplication.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/qa/complex/dbaccess/DatabaseApplication.java b/dbaccess/qa/complex/dbaccess/DatabaseApplication.java
index 71d90a613514..dad7644f8b67 100644
--- a/dbaccess/qa/complex/dbaccess/DatabaseApplication.java
+++ b/dbaccess/qa/complex/dbaccess/DatabaseApplication.java
@@ -34,17 +34,15 @@ public class DatabaseApplication
private final XOfficeDatabaseDocument databaseDocument;
private final XDatabaseDocumentUI documentUI;
- private final DatabaseAccess db;
public DatabaseApplication(final DatabaseAccess _db) throws Exception
{
- db = _db;
- databaseDocument = db.getDatabaseDocument();
+ databaseDocument = _db.getDatabaseDocument();
// load it into a frame
- final Object object = db.getORB().createInstance("com.sun.star.frame.Desktop");
+ final Object object = _db.getORB().createInstance("com.sun.star.frame.Desktop");
final XComponentLoader xComponentLoader = UnoRuntime.queryInterface(XComponentLoader.class, object);
- final XComponent loadedComponent = xComponentLoader.loadComponentFromURL(db.getDocumentURL(), "_blank", FrameSearchFlag.ALL, new PropertyValue[0]);
+ final XComponent loadedComponent = xComponentLoader.loadComponentFromURL(_db.getDocumentURL(), "_blank", FrameSearchFlag.ALL, new PropertyValue[0]);
// get the controller, which provides access to various UI operations
final XModel docModel = UnoRuntime.queryInterface(XModel.class, loadedComponent);