summaryrefslogtreecommitdiff
path: root/connectivity/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-10 15:36:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-11 06:09:03 +0000
commit7557f23b31dcfb4d86c122bb34d9675c0db9a694 (patch)
tree5feb7be2b0841d8ee60d935cf2e29e9a01a31a27 /connectivity/qa
parent808fd5fbd8868dfd95c8a38676815798fa2b79c4 (diff)
java: reduce visibility of fields and methods
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity/qa')
-rw-r--r--connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java46
-rw-r--r--connectivity/qa/connectivity/tools/CRMDatabase.java2
-rw-r--r--connectivity/qa/connectivity/tools/DataSource.java2
3 files changed, 25 insertions, 25 deletions
diff --git a/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java b/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
index ecca4fd9868e..66c65e119945 100644
--- a/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
+++ b/connectivity/qa/complex/connectivity/hsqldb/TestCacheSize.java
@@ -68,54 +68,54 @@ import com.sun.star.sdbc.*;
public class TestCacheSize {
// program can edit the *.properties file to set cache_size
- protected boolean filedb = true;
+ private boolean filedb = true;
// shutdown performed mid operation - not for mem: or hsql: URL's
- protected boolean shutdown = true;
+ private boolean shutdown = true;
// fixed
- protected String url = "sdbc:embedded:hsqldb";
+ private String url = "sdbc:embedded:hsqldb";
// frequent reporting of progress
- boolean reportProgress = false;
+ private boolean reportProgress = false;
- XMultiServiceFactory servicefactory = null;
+ private XMultiServiceFactory servicefactory = null;
// type of the big table {MEMORY | CACHED | TEXT}
- String tableType = "CACHED";
- int cacheScale = 17;
+ private String tableType = "CACHED";
+ private int cacheScale = 17;
int cacheSizeScale = 8;
// script format {TEXT, BINARY, COMPRESSED}
- String logType = "TEXT";
- int writeDelay = 60;
- boolean indexZip = true;
- boolean indexLastName = false;
- boolean addForeignKey = false;
- boolean refIntegrity = true;
+ private String logType = "TEXT";
+ private int writeDelay = 60;
+ private boolean indexZip = true;
+ private boolean indexLastName = false;
+ private boolean addForeignKey = false;
+ private boolean refIntegrity = true;
// speeds up inserts when tableType=="CACHED"
- boolean createTempTable = false;
+ private boolean createTempTable = false;
// introduces fragmentation to the .data file during insert
- boolean deleteWhileInsert = false;
- int deleteWhileInsertInterval = 10000;
+ private boolean deleteWhileInsert = false;
+ private int deleteWhileInsertInterval = 10000;
// size of the tables used in test
int bigrows = 10000;
int smallrows = 0xfff;
// if the extra table needs to be created and filled up
- boolean multikeytable = false;
+ private boolean multikeytable = false;
- String user;
- String password;
- XStatement sStatement;
- XConnection cConnection;
+ private String user;
+ private String password;
+ private XStatement sStatement;
+ private XConnection cConnection;
XDataSource ds;
- XDriver drv;
- com.sun.star.beans.PropertyValue[] info;
+ private XDriver drv;
+ private com.sun.star.beans.PropertyValue[] info;
public TestCacheSize(XMultiServiceFactory _xmulti,com.sun.star.beans.PropertyValue[] _info,XDriver _drv){
servicefactory = _xmulti;
diff --git a/connectivity/qa/connectivity/tools/CRMDatabase.java b/connectivity/qa/connectivity/tools/CRMDatabase.java
index 3caf024f1a3d..3d33926280c3 100644
--- a/connectivity/qa/connectivity/tools/CRMDatabase.java
+++ b/connectivity/qa/connectivity/tools/CRMDatabase.java
@@ -112,7 +112,7 @@ public class CRMDatabase
}
- public XDatabaseDocumentUI getDocumentUI()
+ private XDatabaseDocumentUI getDocumentUI()
{
XModel docModel = UnoRuntime.queryInterface( XModel.class, m_database.getDatabaseDocument() );
return UnoRuntime.queryInterface( XDatabaseDocumentUI.class, docModel.getCurrentController() );
diff --git a/connectivity/qa/connectivity/tools/DataSource.java b/connectivity/qa/connectivity/tools/DataSource.java
index 748ee61cdefe..5b42e343dd0a 100644
--- a/connectivity/qa/connectivity/tools/DataSource.java
+++ b/connectivity/qa/connectivity/tools/DataSource.java
@@ -109,7 +109,7 @@ public class DataSource
/** provides the container of query definitions of the data source
*/
- public XNameAccess getQueryDefinitions()
+ private XNameAccess getQueryDefinitions()
{
final XQueryDefinitionsSupplier suppQueries = UnoRuntime.queryInterface(
XQueryDefinitionsSupplier.class, m_dataSource);