summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:36:04 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:22 +0200
commitda677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch)
tree9aa09066c95935117bf405b119ed9f89f448a54d /framework
parent14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff)
java: reduce scope, make fields private
found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'framework')
-rw-r--r--framework/qa/complex/framework/recovery/CrashThread.java4
-rw-r--r--framework/qa/complex/imageManager/_XComponent.java18
-rw-r--r--framework/qa/complex/imageManager/_XImageManager.java8
-rw-r--r--framework/qa/complex/imageManager/_XInitialization.java4
-rw-r--r--framework/qa/complex/imageManager/_XTypeProvider.java6
-rw-r--r--framework/qa/complex/imageManager/_XUIConfiguration.java6
-rw-r--r--framework/qa/complex/imageManager/_XUIConfigurationPersistence.java4
7 files changed, 25 insertions, 25 deletions
diff --git a/framework/qa/complex/framework/recovery/CrashThread.java b/framework/qa/complex/framework/recovery/CrashThread.java
index 56af134c039b..437b1309605c 100644
--- a/framework/qa/complex/framework/recovery/CrashThread.java
+++ b/framework/qa/complex/framework/recovery/CrashThread.java
@@ -33,8 +33,8 @@ import com.sun.star.util.XURLTransformer;
* is nopt longer available.
*/
public class CrashThread extends Thread {
- public XComponent xDoc = null;
- public XMultiServiceFactory msf = null;
+ private XComponent xDoc = null;
+ private XMultiServiceFactory msf = null;
public CrashThread(XComponent xDoc, XMultiServiceFactory msf) {
this.xDoc = xDoc;
diff --git a/framework/qa/complex/imageManager/_XComponent.java b/framework/qa/complex/imageManager/_XComponent.java
index e1051d28ab56..3e1dddf9378c 100644
--- a/framework/qa/complex/imageManager/_XComponent.java
+++ b/framework/qa/complex/imageManager/_XComponent.java
@@ -38,19 +38,19 @@ import lib.TestParameters;
*/
public class _XComponent {
- public static XComponent oObj = null;
+ private static XComponent oObj = null;
private XComponent altDispose = null;
- TestParameters tEnv = null;
- boolean listenerDisposed[] = new boolean[2];
- String[] Loutput = new String[2];
+ private TestParameters tEnv = null;
+ private boolean listenerDisposed[] = new boolean[2];
+ private String[] Loutput = new String[2];
/**
* Listener which added but not removed, and its method must be called
* on <code>dispose</code> call.
*/
public class MyEventListener implements XEventListener {
- int number = 0;
- String message = null;
+ private int number = 0;
+ private String message = null;
private MyEventListener(int number, String message) {
this.message = message;
this.number = number;
@@ -61,8 +61,8 @@ public class _XComponent {
}
}
- XEventListener listener1 = new MyEventListener(0, "EV1");
- XEventListener listener2 = new MyEventListener(1, "EV2");
+ private XEventListener listener1 = new MyEventListener(0, "EV1");
+ private XEventListener listener2 = new MyEventListener(1, "EV2");
public _XComponent(TestParameters tEnv, XComponent oObj) {
this.tEnv = tEnv;
@@ -115,7 +115,7 @@ public class _XComponent {
return true;
} // finished _removeEventListener()
- static boolean disposed = false;
+ private static boolean disposed = false;
/**
* Disposes the object and then check appropriate listeners were
diff --git a/framework/qa/complex/imageManager/_XImageManager.java b/framework/qa/complex/imageManager/_XImageManager.java
index 6fa6a59433ad..12a3da817654 100644
--- a/framework/qa/complex/imageManager/_XImageManager.java
+++ b/framework/qa/complex/imageManager/_XImageManager.java
@@ -28,10 +28,10 @@ import lib.TestParameters;
*/
public class _XImageManager {
- TestParameters tEnv = null;
- String[]imageNames = null;
- XGraphic[] xGraphicArray = null;
- public XImageManager oObj;
+ private TestParameters tEnv = null;
+ private String[]imageNames = null;
+ private XGraphic[] xGraphicArray = null;
+ private XImageManager oObj;
public _XImageManager( TestParameters tEnv, XImageManager oObj) {
diff --git a/framework/qa/complex/imageManager/_XInitialization.java b/framework/qa/complex/imageManager/_XInitialization.java
index c0d625f73fe3..fce31d4a3835 100644
--- a/framework/qa/complex/imageManager/_XInitialization.java
+++ b/framework/qa/complex/imageManager/_XInitialization.java
@@ -40,8 +40,8 @@ import lib.TestParameters;
public class _XInitialization {
- TestParameters tEnv = null;
- public static XInitialization oObj = null;
+ private TestParameters tEnv = null;
+ private static XInitialization oObj = null;
public _XInitialization(TestParameters tEnv, XInitialization oObj) {
diff --git a/framework/qa/complex/imageManager/_XTypeProvider.java b/framework/qa/complex/imageManager/_XTypeProvider.java
index dffbe0e9b7e1..1f45f9a3492b 100644
--- a/framework/qa/complex/imageManager/_XTypeProvider.java
+++ b/framework/qa/complex/imageManager/_XTypeProvider.java
@@ -37,9 +37,9 @@ import lib.TestParameters;
public class _XTypeProvider {
- TestParameters tEnv = null;
- public static XTypeProvider oObj = null;
- public static Type[] types = null;
+ private TestParameters tEnv = null;
+ private static XTypeProvider oObj = null;
+ private static Type[] types = null;
public _XTypeProvider(TestParameters tEnv, XTypeProvider oObj) {
diff --git a/framework/qa/complex/imageManager/_XUIConfiguration.java b/framework/qa/complex/imageManager/_XUIConfiguration.java
index bee3a42fffbf..fa05dc07f47e 100644
--- a/framework/qa/complex/imageManager/_XUIConfiguration.java
+++ b/framework/qa/complex/imageManager/_XUIConfiguration.java
@@ -28,9 +28,9 @@ import lib.TestParameters;
public class _XUIConfiguration {
- TestParameters tEnv = null;
- public XUIConfiguration oObj;
- XUIConfigurationListenerImpl xListener = null;
+ private TestParameters tEnv = null;
+ private XUIConfiguration oObj;
+ private XUIConfigurationListenerImpl xListener = null;
public static interface XUIConfigurationListenerImpl
extends XUIConfigurationListener {
diff --git a/framework/qa/complex/imageManager/_XUIConfigurationPersistence.java b/framework/qa/complex/imageManager/_XUIConfigurationPersistence.java
index a887aafd1f64..aa00c59b57c7 100644
--- a/framework/qa/complex/imageManager/_XUIConfigurationPersistence.java
+++ b/framework/qa/complex/imageManager/_XUIConfigurationPersistence.java
@@ -27,8 +27,8 @@ import lib.TestParameters;
public class _XUIConfigurationPersistence {
- TestParameters tEnv = null;
- public XUIConfigurationPersistence oObj;
+ private TestParameters tEnv = null;
+ private XUIConfigurationPersistence oObj;
private XStorage xStore = null;
public _XUIConfigurationPersistence(TestParameters tEnv, XUIConfigurationPersistence oObj) {