summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/stats
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 12:44:57 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:23 +0200
commit68cd011c907d00493bf2bfde531c1e244819596b (patch)
tree0225318c908b00faaa701a19aaf7aa567c3582a0 /qadevOOo/runner/stats
parent70f56bc22fe952c75ec714e05e1bb5296491a36a (diff)
java: reduce scope, make some methods private
found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'qadevOOo/runner/stats')
-rw-r--r--qadevOOo/runner/stats/DataBaseOutProducer.java6
-rw-r--r--qadevOOo/runner/stats/OutProducerFactory.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/runner/stats/DataBaseOutProducer.java b/qadevOOo/runner/stats/DataBaseOutProducer.java
index b36dcfc07c98..6ffe9b705c39 100644
--- a/qadevOOo/runner/stats/DataBaseOutProducer.java
+++ b/qadevOOo/runner/stats/DataBaseOutProducer.java
@@ -87,7 +87,7 @@ public abstract class DataBaseOutProducer implements LogWriter {
* @param entry The description entry that is take as root
* @param log The log writer
*/
- protected boolean findTypeInEntryTree(DescEntry entry, LogWriter log) {
+ private boolean findTypeInEntryTree(DescEntry entry, LogWriter log) {
boolean returnVal = true;
if (isWriteableEntryType(entry)) {
returnVal &= insertEntry(entry, log);
@@ -108,7 +108,7 @@ public abstract class DataBaseOutProducer implements LogWriter {
* @param entry The entry to write.
* @param log The log writer.
*/
- protected boolean insertEntry(DescEntry entry, LogWriter log) {
+ private boolean insertEntry(DescEntry entry, LogWriter log) {
// copy the swlInput HashMap, so it can be reset easily for the next run
HashMap<String,Object> copySqlInput = new HashMap<String,Object>();
copySqlInput.putAll(mSqlInput);
@@ -138,7 +138,7 @@ public abstract class DataBaseOutProducer implements LogWriter {
* @param entry The entry that is checked
* @return True, if it is indeed a writeable entry.
*/
- protected boolean isWriteableEntryType(DescEntry entry) {
+ private boolean isWriteableEntryType(DescEntry entry) {
boolean result = false;
for (int i=0; i<mWriteableEntryTypes.length; i++) {
if (entry.EntryType.equals(mWriteableEntryTypes[i])) {
diff --git a/qadevOOo/runner/stats/OutProducerFactory.java b/qadevOOo/runner/stats/OutProducerFactory.java
index c900cf484e40..a657a116f3d5 100644
--- a/qadevOOo/runner/stats/OutProducerFactory.java
+++ b/qadevOOo/runner/stats/OutProducerFactory.java
@@ -65,7 +65,7 @@ public class OutProducerFactory {
* @param param The test parameters
* @return The database out producer, or null if it couldn't be created.
*/
- public static LogWriter createDataBaseOutProducer(HashMap<String,Object> param) {
+ private static LogWriter createDataBaseOutProducer(HashMap<String,Object> param) {
String dataProducerName = (String)param.get("DataBaseOutProducer");
if (dataProducerName == null) {
String testBaseName = (String)param.get("TestBase");
@@ -89,7 +89,7 @@ public class OutProducerFactory {
* As a fallback, create a simple out producer, if all else failed.
* @return A simple out producer, writing to the screen.
*/
- public static LogWriter createSimpleOutProducer() {
+ private static LogWriter createSimpleOutProducer() {
return new SimpleOutProducer();
}