diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (patch) | |
tree | 6a976bf53992c68a46472199e5fb494339899ae6 /qadevOOo/runner | |
parent | '>>' should be '> >' within a nested template argument list (diff) | |
download | core-14d1a11ec4a7ed0deeac522403248536e8d23f57.tar.gz core-14d1a11ec4a7ed0deeac522403248536e8d23f57.zip |
java: reduce scope, make constructors private
found by UCDetector
Change-Id: If05277fd2fe77ceabb4c7c87aeb8569e3406102d
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/convwatch/ImageHelper.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/convwatch/TriState.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/helper/ConfigurationRead.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/helper/ProcessHandler.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/lib/Parameters.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/DBTools.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/WaitUnreachable.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/XMLTools.java | 8 |
8 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/runner/convwatch/ImageHelper.java b/qadevOOo/runner/convwatch/ImageHelper.java index 6389971b7136..79c5d5cc1fdd 100644 --- a/qadevOOo/runner/convwatch/ImageHelper.java +++ b/qadevOOo/runner/convwatch/ImageHelper.java @@ -32,7 +32,7 @@ class ImageHelper int m_h = 0; boolean m_bGrabbed = false; - public ImageHelper(Image _aImage) + private ImageHelper(Image _aImage) { m_aImage = _aImage; diff --git a/qadevOOo/runner/convwatch/TriState.java b/qadevOOo/runner/convwatch/TriState.java index 80a568329f92..835ff6e67b66 100644 --- a/qadevOOo/runner/convwatch/TriState.java +++ b/qadevOOo/runner/convwatch/TriState.java @@ -32,7 +32,7 @@ public class TriState @param value the value of the <code>TriState</code>. */ - public TriState(int value) + private TriState(int value) { m_nValue = value; } diff --git a/qadevOOo/runner/helper/ConfigurationRead.java b/qadevOOo/runner/helper/ConfigurationRead.java index 30c8ee2d0c4b..5a3e476421dc 100644 --- a/qadevOOo/runner/helper/ConfigurationRead.java +++ b/qadevOOo/runner/helper/ConfigurationRead.java @@ -38,7 +38,7 @@ public class ConfigurationRead { * "com.sun.star.configuration.ConfigurationProvider" * @param rootnode The root of the configuration nodes. */ - public ConfigurationRead(XMultiServiceFactory xMSF, String rootnode) { + private ConfigurationRead(XMultiServiceFactory xMSF, String rootnode) { PropertyValue [] nodeArgs = new PropertyValue [1]; PropertyValue nodepath = new PropertyValue(); diff --git a/qadevOOo/runner/helper/ProcessHandler.java b/qadevOOo/runner/helper/ProcessHandler.java index e88a2a2181f4..03f9bf130d6c 100644 --- a/qadevOOo/runner/helper/ProcessHandler.java +++ b/qadevOOo/runner/helper/ProcessHandler.java @@ -275,7 +275,7 @@ public class ProcessHandler * * */ - public ProcessHandler(String cmdLine, PrintWriter log, File workDir, String[] envVars, long timeOut) + private ProcessHandler(String cmdLine, PrintWriter log, File workDir, String[] envVars, long timeOut) { this.cmdLine = cmdLine; this.workDir = workDir; @@ -829,7 +829,7 @@ public class ProcessHandler private String m_sProcessToStart; private boolean m_bInterrupt; - public ProcessWatcher(int _nTimeOut, String _sProcess) + private ProcessWatcher(int _nTimeOut, String _sProcess) { m_nTimeoutInSec = _nTimeOut; m_sProcessToStart = _sProcess; diff --git a/qadevOOo/runner/lib/Parameters.java b/qadevOOo/runner/lib/Parameters.java index eb28612fd60b..6901323e9641 100644 --- a/qadevOOo/runner/lib/Parameters.java +++ b/qadevOOo/runner/lib/Parameters.java @@ -45,7 +45,7 @@ public class Parameters implements XPropertySet { this (params, null); } - public Parameters(Map<String, Object> params, Parameters defaultParams) { + private Parameters(Map<String, Object> params, Parameters defaultParams) { parameters = params; defaults = defaultParams; checkParameters(parameters); diff --git a/qadevOOo/runner/util/DBTools.java b/qadevOOo/runner/util/DBTools.java index 251406276cbf..43aa834cb1d7 100644 --- a/qadevOOo/runner/util/DBTools.java +++ b/qadevOOo/runner/util/DBTools.java @@ -163,7 +163,7 @@ public class DBTools { * @param dataSource All source properties are copied into * class fields. */ - public DataSourceInfo(Object dataSource) { + private DataSourceInfo(Object dataSource) { XPropertySet xProps = UnoRuntime.queryInterface(XPropertySet.class, dataSource) ; try { diff --git a/qadevOOo/runner/util/WaitUnreachable.java b/qadevOOo/runner/util/WaitUnreachable.java index 605bf752b305..e33220681ff7 100644 --- a/qadevOOo/runner/util/WaitUnreachable.java +++ b/qadevOOo/runner/util/WaitUnreachable.java @@ -97,7 +97,7 @@ public final class WaitUnreachable { */ public static void ensureFinalization(final Object obj) { final class WaitThread extends Thread { - public WaitThread(Object obj) { + private WaitThread(Object obj) { super("ensureFinalization"); unreachable = new WaitUnreachable(obj); } diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java index 2ee99cbe4843..7516d4b8c895 100644 --- a/qadevOOo/runner/util/XMLTools.java +++ b/qadevOOo/runner/util/XMLTools.java @@ -75,7 +75,7 @@ public class XMLTools { this.log = log ; } - public AttributeList(XAttributeList list) { + private AttributeList(XAttributeList list) { if (list == null) return ; for (short i = 0; i < list.getLength(); i++) { add(list.getNameByIndex(i), list.getTypeByIndex(i), @@ -178,7 +178,7 @@ public class XMLTools { * Creates a SAX handler which writes all XML data * handled into a <code>log</code> stream specified. */ - public XMLWriter(PrintWriter log) { + private XMLWriter(PrintWriter log) { _log = log ; } @@ -260,12 +260,12 @@ public class XMLTools { protected PrintWriter log = null ; protected boolean printXMLData = false ; - public XMLWellFormChecker(PrintWriter log) { + private XMLWellFormChecker(PrintWriter log) { super() ; this.log = log ; } - public XMLWellFormChecker(PrintWriter log_, boolean printXMLData) { + private XMLWellFormChecker(PrintWriter log_, boolean printXMLData) { super(printXMLData ? log_ : null) ; this.printXMLData = printXMLData ; this.log = log_ ; |