From da677dfd59c2b551f3335ee0a5d5dfb33f9869c5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Aug 2014 11:36:04 +0200 Subject: java: reduce scope, make fields private found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6 --- ucb/qa/complex/tdoc/_XChild.java | 4 ++-- ucb/qa/complex/tdoc/_XCommandProcessor.java | 4 ++-- ucb/qa/complex/tdoc/_XComponent.java | 12 ++++++------ ucb/qa/complex/tdoc/_XContent.java | 2 +- ucb/qa/complex/tdoc/_XPropertiesChangeNotifier.java | 4 ++-- ucb/qa/complex/tdoc/_XPropertyContainer.java | 2 +- ucb/qa/complex/tdoc/_XPropertySetInfoChangeNotifier.java | 2 +- ucb/qa/complex/tdoc/_XServiceInfo.java | 4 ++-- ucb/qa/complex/tdoc/_XTypeProvider.java | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) (limited to 'ucb') diff --git a/ucb/qa/complex/tdoc/_XChild.java b/ucb/qa/complex/tdoc/_XChild.java index 067afd8a0fcd..8d80e7856f46 100644 --- a/ucb/qa/complex/tdoc/_XChild.java +++ b/ucb/qa/complex/tdoc/_XChild.java @@ -35,8 +35,8 @@ import share.LogWriter; public class _XChild { public XChild oObj = null; - public Object gotten = null; - public LogWriter log = null; + private Object gotten = null; + private LogWriter log = null; /** diff --git a/ucb/qa/complex/tdoc/_XCommandProcessor.java b/ucb/qa/complex/tdoc/_XCommandProcessor.java index 1e04f59d7fa9..ad54704ba498 100644 --- a/ucb/qa/complex/tdoc/_XCommandProcessor.java +++ b/ucb/qa/complex/tdoc/_XCommandProcessor.java @@ -71,14 +71,14 @@ public class _XCommandProcessor { * Conatins the tested object. */ public XCommandProcessor oObj; - public LogWriter log = null; + private LogWriter log = null; private XMultiServiceFactory xMSF = null; /** * Contains the command id returned by createCommandIdentifier() * . It is used in abort() test. */ - int cmdId; + private int cmdId; public void before(XMultiServiceFactory _xMSF) { xMSF = _xMSF; diff --git a/ucb/qa/complex/tdoc/_XComponent.java b/ucb/qa/complex/tdoc/_XComponent.java index 50f5747bbc7f..63adb1fe50cc 100644 --- a/ucb/qa/complex/tdoc/_XComponent.java +++ b/ucb/qa/complex/tdoc/_XComponent.java @@ -38,10 +38,10 @@ import share.LogWriter; public class _XComponent { public static XComponent oObj = null; - public LogWriter log = null; + private LogWriter log = null; - boolean listenerDisposed[] = new boolean[2]; - String[] Loutput = new String[2]; + private boolean listenerDisposed[] = new boolean[2]; + private String[] Loutput = new String[2]; /** * Listener which added but not removed, and its method must be called @@ -65,8 +65,8 @@ public class _XComponent { } } - XEventListener listener1 = new MyEventListener(); - XEventListener listener2 = new MyEventListener2(); + private XEventListener listener1 = new MyEventListener(); + private XEventListener listener2 = new MyEventListener2(); /** * For the cfgmgr2.OSetElement tests: dispose the owner element. @@ -110,7 +110,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/ucb/qa/complex/tdoc/_XContent.java b/ucb/qa/complex/tdoc/_XContent.java index 19c91e0a895b..735c40167eaa 100644 --- a/ucb/qa/complex/tdoc/_XContent.java +++ b/ucb/qa/complex/tdoc/_XContent.java @@ -24,7 +24,7 @@ import share.LogWriter; public class _XContent { public XContent oObj = null; - public LogWriter log = null; + private LogWriter log = null; private ContentListener listener = null; public boolean _addContentEventListener() { diff --git a/ucb/qa/complex/tdoc/_XPropertiesChangeNotifier.java b/ucb/qa/complex/tdoc/_XPropertiesChangeNotifier.java index 5c9dedb354de..4f945d09f94e 100644 --- a/ucb/qa/complex/tdoc/_XPropertiesChangeNotifier.java +++ b/ucb/qa/complex/tdoc/_XPropertiesChangeNotifier.java @@ -28,8 +28,8 @@ public class _XPropertiesChangeNotifier { public XPropertiesChangeNotifier oObj = null; public LogWriter log = null; - PropertiesChangeListener listener = new PropertiesChangeListener(); - String[] args = null; + private PropertiesChangeListener listener = new PropertiesChangeListener(); + private String[] args = null; public boolean _addPropertiesChangeListener() { diff --git a/ucb/qa/complex/tdoc/_XPropertyContainer.java b/ucb/qa/complex/tdoc/_XPropertyContainer.java index 50be2d929a06..7bb5fa01ec0a 100644 --- a/ucb/qa/complex/tdoc/_XPropertyContainer.java +++ b/ucb/qa/complex/tdoc/_XPropertyContainer.java @@ -22,7 +22,7 @@ import share.LogWriter; public class _XPropertyContainer { public XPropertyContainer oObj = null; - public LogWriter log = null; + private LogWriter log = null; public boolean _addProperty() { boolean result = true; diff --git a/ucb/qa/complex/tdoc/_XPropertySetInfoChangeNotifier.java b/ucb/qa/complex/tdoc/_XPropertySetInfoChangeNotifier.java index 0b669f7eb21c..0505c6796108 100644 --- a/ucb/qa/complex/tdoc/_XPropertySetInfoChangeNotifier.java +++ b/ucb/qa/complex/tdoc/_XPropertySetInfoChangeNotifier.java @@ -28,7 +28,7 @@ public class _XPropertySetInfoChangeNotifier { public XPropertySetInfoChangeNotifier oObj = null; public LogWriter log = null; - PropertySetInfoChangeListener listener = new PropertySetInfoChangeListener(); + private PropertySetInfoChangeListener listener = new PropertySetInfoChangeListener(); String[] args = null; diff --git a/ucb/qa/complex/tdoc/_XServiceInfo.java b/ucb/qa/complex/tdoc/_XServiceInfo.java index 85cd5211d2c2..63f979b75618 100644 --- a/ucb/qa/complex/tdoc/_XServiceInfo.java +++ b/ucb/qa/complex/tdoc/_XServiceInfo.java @@ -34,8 +34,8 @@ import share.LogWriter; */ public class _XServiceInfo { public static XServiceInfo oObj = null; - public static String[] names = null; - public LogWriter log = null; + private static String[] names = null; + private LogWriter log = null; /** * Just calls the method.

diff --git a/ucb/qa/complex/tdoc/_XTypeProvider.java b/ucb/qa/complex/tdoc/_XTypeProvider.java index bcf8f5f6bfcd..2622db30f946 100644 --- a/ucb/qa/complex/tdoc/_XTypeProvider.java +++ b/ucb/qa/complex/tdoc/_XTypeProvider.java @@ -35,8 +35,8 @@ import share.LogWriter; public class _XTypeProvider { public static XTypeProvider oObj = null; - public static Type[] types = null; - public LogWriter log = null; + private static Type[] types = null; + private LogWriter log = null; /** * Just calls the method.

-- cgit