summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:15:15 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:22 +0200
commit14d1a11ec4a7ed0deeac522403248536e8d23f57 (patch)
tree6a976bf53992c68a46472199e5fb494339899ae6 /wizards
parentcd0bbdaf379d646c94e6771f3358d7e3a8f206ad (diff)
java: reduce scope, make constructors private
found by UCDetector Change-Id: If05277fd2fe77ceabb4c7c87aeb8569e3406102d
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/SystemDialog.java2
-rw-r--r--wizards/com/sun/star/wizards/db/DBMetaData.java2
-rw-r--r--wizards/com/sun/star/wizards/db/TypeInspector.java2
-rw-r--r--wizards/com/sun/star/wizards/form/FormDocument.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java2
-rw-r--r--wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/AggregateComponent.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/ButtonList.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/FilterComponent.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/ImageList.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/PeerConfig.java6
-rw-r--r--wizards/com/sun/star/wizards/ui/TitlesComponent.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/event/MethodInvocation.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/event/UnoDataAware.java2
14 files changed, 16 insertions, 16 deletions
diff --git a/wizards/com/sun/star/wizards/common/SystemDialog.java b/wizards/com/sun/star/wizards/common/SystemDialog.java
index cf10b62e9171..25cee169add4 100644
--- a/wizards/com/sun/star/wizards/common/SystemDialog.java
+++ b/wizards/com/sun/star/wizards/common/SystemDialog.java
@@ -50,7 +50,7 @@ public class SystemDialog
*
* @param type according to com.sun.star.ui.dialogs.TemplateDescription
*/
- public SystemDialog(XMultiServiceFactory xMSF, String ServiceName, short type)
+ private SystemDialog(XMultiServiceFactory xMSF, String ServiceName, short type)
{
try
{
diff --git a/wizards/com/sun/star/wizards/db/DBMetaData.java b/wizards/com/sun/star/wizards/db/DBMetaData.java
index c5a47b4e84cb..5a2660c24236 100644
--- a/wizards/com/sun/star/wizards/db/DBMetaData.java
+++ b/wizards/com/sun/star/wizards/db/DBMetaData.java
@@ -289,7 +289,7 @@ public class DBMetaData
private String Name;
private int CommandType;
- public CommandObject(String _CommandName, int _CommandType)
+ private CommandObject(String _CommandName, int _CommandType)
{
try
{
diff --git a/wizards/com/sun/star/wizards/db/TypeInspector.java b/wizards/com/sun/star/wizards/db/TypeInspector.java
index 6cd8a493c234..b7930bd0f492 100644
--- a/wizards/com/sun/star/wizards/db/TypeInspector.java
+++ b/wizards/com/sun/star/wizards/db/TypeInspector.java
@@ -56,7 +56,7 @@ public class TypeInspector
public String sDataTypeName;
public boolean bisAutoIncrementable;
- public TypeInfo(int _nDataType, String _sDataTypeName, boolean _bisAutoIncrementable)
+ private TypeInfo(int _nDataType, String _sDataTypeName, boolean _bisAutoIncrementable)
{
nDataType = _nDataType;
sDataTypeName = _sDataTypeName;
diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java
index c634f4eda9eb..f24cbe4d01f9 100644
--- a/wizards/com/sun/star/wizards/form/FormDocument.java
+++ b/wizards/com/sun/star/wizards/form/FormDocument.java
@@ -347,7 +347,7 @@ public class FormDocument extends TextDocument
CommandMetaData oDBMetaData;
XPropertySet xPropertySet;
- public ControlForm(FormDocument _oFormDocument, String _sname, Point _astartPoint, Size _aFormSize)
+ private ControlForm(FormDocument _oFormDocument, String _sname, Point _astartPoint, Size _aFormSize)
{
aStartPoint = _astartPoint;
aFormSize = _aFormSize;
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
index f4dc340b004d..8a4027033603 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java
@@ -23,7 +23,7 @@ import com.sun.star.report.XFixedText;
public class SectionLabel extends SectionObject
{
- protected SectionLabel(XFixedText _aFixedText)
+ private SectionLabel(XFixedText _aFixedText)
{
m_aParentObject = _aFixedText;
}
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
index 749df02b1e7d..bc7be4e88462 100644
--- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
+++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java
@@ -23,7 +23,7 @@ import com.sun.star.report.XFormattedField;
public class SectionTextField extends SectionObject
{
- protected SectionTextField(XFormattedField _aFormattedField)
+ private SectionTextField(XFormattedField _aFormattedField)
{
m_aParentObject = _aFormattedField;
// We would like to know, what properties are in this object.
diff --git a/wizards/com/sun/star/wizards/ui/AggregateComponent.java b/wizards/com/sun/star/wizards/ui/AggregateComponent.java
index c49f21784a1b..67f17ec39950 100644
--- a/wizards/com/sun/star/wizards/ui/AggregateComponent.java
+++ b/wizards/com/sun/star/wizards/ui/AggregateComponent.java
@@ -514,7 +514,7 @@ public class AggregateComponent extends ControlScroller
private XListBox xFunctionListBox;
private int index;
- protected ControlRow(int _index, int ypos, int _curHelpID)
+ private ControlRow(int _index, int ypos, int _curHelpID)
{
try
{
diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java
index a4aed7619bda..0f17303dc95a 100644
--- a/wizards/com/sun/star/wizards/ui/ButtonList.java
+++ b/wizards/com/sun/star/wizards/ui/ButtonList.java
@@ -624,7 +624,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
public int start, end, max;
- public Counter(int start_, int end_, int max_)
+ private Counter(int start_, int end_, int max_)
{
start = start_;
end = end_;
diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java
index 6e245c06e68e..c1420c683938 100644
--- a/wizards/com/sun/star/wizards/ui/FilterComponent.java
+++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java
@@ -518,7 +518,7 @@ public class FilterComponent
private boolean m_bEnabled;
String[] FieldNames;
- protected ControlRow(int iCompPosX, int iCompPosY, int Index, boolean _bEnabled, int _firstRowHelpID)
+ private ControlRow(int iCompPosX, int iCompPosY, int Index, boolean _bEnabled, int _firstRowHelpID)
{
int nFieldWidth = 71;
int nOperatorWidth = 70;
diff --git a/wizards/com/sun/star/wizards/ui/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java
index 66969937e191..4ca02a4612d8 100644
--- a/wizards/com/sun/star/wizards/ui/ImageList.java
+++ b/wizards/com/sun/star/wizards/ui/ImageList.java
@@ -813,7 +813,7 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener
public int start, end, max;
- public Counter(int start_, int end_, int max_)
+ private Counter(int start_, int end_, int max_)
{
start = start_;
end = end_;
diff --git a/wizards/com/sun/star/wizards/ui/PeerConfig.java b/wizards/com/sun/star/wizards/ui/PeerConfig.java
index 48ded39005f7..689c0dd92700 100644
--- a/wizards/com/sun/star/wizards/ui/PeerConfig.java
+++ b/wizards/com/sun/star/wizards/ui/PeerConfig.java
@@ -50,7 +50,7 @@ public class PeerConfig implements XWindowListener
String[] propnames;
Object[] propvalues;
- public PeerTask(XControl _xControl, String[] propNames_, Object[] propValues_)
+ private PeerTask(XControl _xControl, String[] propNames_, Object[] propValues_)
{
propnames = propNames_;
propvalues = propValues_;
@@ -65,7 +65,7 @@ public class PeerConfig implements XWindowListener
String propname;
Object propvalue;
- public ControlTask(Object _oModel, String _propName, Object _propValue)
+ private ControlTask(Object _oModel, String _propName, Object _propValue)
{
propname = _propName;
propvalue = _propValue;
@@ -80,7 +80,7 @@ public class PeerConfig implements XWindowListener
Object oResource;
Object oHCResource;
- public ImageUrlTask(Object _oModel, Object _oResource, Object _oHCResource)
+ private ImageUrlTask(Object _oModel, Object _oResource, Object _oHCResource)
{
oResource = _oResource;
oHCResource = _oHCResource;
diff --git a/wizards/com/sun/star/wizards/ui/TitlesComponent.java b/wizards/com/sun/star/wizards/ui/TitlesComponent.java
index 03e3c5339974..c279e6f329bd 100644
--- a/wizards/com/sun/star/wizards/ui/TitlesComponent.java
+++ b/wizards/com/sun/star/wizards/ui/TitlesComponent.java
@@ -92,7 +92,7 @@ public class TitlesComponent extends ControlScroller
PropertyValue[] regproperties;
XTextComponent xTextComponent;
- public ControlRow(int _index, int _iCompPosY)
+ private ControlRow(int _index, int _iCompPosY)
{
String slabelname = getColumnName(_index);
String stextfieldname = getTitleName(_index);
diff --git a/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java b/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
index 19b03e86913a..4218c07ffdef 100644
--- a/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
+++ b/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
@@ -55,7 +55,7 @@ public class MethodInvocation
this(paramClass == null ? obj.getClass().getMethod(methodName) : obj.getClass().getMethod(methodName, paramClass), obj, paramClass);
}
- public MethodInvocation(Method method, Object obj, Class<?> paramClass)
+ private MethodInvocation(Method method, Object obj, Class<?> paramClass)
{
mMethod = method;
mObject = obj;
diff --git a/wizards/com/sun/star/wizards/ui/event/UnoDataAware.java b/wizards/com/sun/star/wizards/ui/event/UnoDataAware.java
index f1c176fdb751..cf21494c4cf9 100644
--- a/wizards/com/sun/star/wizards/ui/event/UnoDataAware.java
+++ b/wizards/com/sun/star/wizards/ui/event/UnoDataAware.java
@@ -41,7 +41,7 @@ public class UnoDataAware extends DataAware
protected Object[] disableObjects = new Object[0];
protected boolean inverse = false;
- protected UnoDataAware(Object dataObject, Value value, Object unoObject_, String unoPropName_)
+ private UnoDataAware(Object dataObject, Value value, Object unoObject_, String unoPropName_)
{
super(dataObject, value);
unoControl = unoObject_;