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 /scripting/java | |
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 'scripting/java')
7 files changed, 9 insertions, 9 deletions
diff --git a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java index bb00331e6e78..31bb3b3c4af7 100644 --- a/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java +++ b/scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java @@ -489,7 +489,7 @@ XInitialization { public class ActionListenerImpl implements com.sun.star.awt.XActionListener { private String _buttonName; - public ActionListenerImpl( String buttonName ) { + private ActionListenerImpl( String buttonName ) { _buttonName = buttonName; } @@ -508,7 +508,7 @@ XInitialization { public class ItemListenerImpl implements com.sun.star.awt.XItemListener { private XCheckBox _xCheckBox; - public ItemListenerImpl( XControlContainer xControlCont ) { + private ItemListenerImpl( XControlContainer xControlCont ) { Object objectCheckBox = xControlCont.getControl( _checkBoxName ); _xCheckBox = UnoRuntime.queryInterface( XCheckBox.class, objectCheckBox ); diff --git a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java index a77e36f4e1c3..efc9347d5d04 100644 --- a/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java +++ b/scripting/java/com/sun/star/script/framework/container/DeployedUnoPackagesDB.java @@ -50,7 +50,7 @@ public class DeployedUnoPackagesDB { } } - public DeployedUnoPackagesDB(Document document) { + private DeployedUnoPackagesDB(Document document) { this.document = document; } diff --git a/scripting/java/com/sun/star/script/framework/container/Parcel.java b/scripting/java/com/sun/star/script/framework/container/Parcel.java index e6997763d662..1b3da878752b 100644 --- a/scripting/java/com/sun/star/script/framework/container/Parcel.java +++ b/scripting/java/com/sun/star/script/framework/container/Parcel.java @@ -40,7 +40,7 @@ public class Parcel implements XNameContainer this.m_xSFA = xSFA; } - public Parcel( ParcelContainer parent, ParcelDescriptor desc, String parcelName ) + private Parcel( ParcelContainer parent, ParcelDescriptor desc, String parcelName ) { this.parent = parent; this.m_descriptor = desc; diff --git a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java index be1e2c808be2..ba8ca3adfd9e 100644 --- a/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java +++ b/scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java @@ -124,7 +124,7 @@ public class ParcelDescriptor { } } - public ParcelDescriptor(Document document) { + private ParcelDescriptor(Document document) { this.document = document; initLanguageProperties(); } @@ -137,7 +137,7 @@ public class ParcelDescriptor { this(file, "Java"); } - public ParcelDescriptor(File file, String language) throws IOException { + private ParcelDescriptor(File file, String language) throws IOException { this.file = file; if (file.exists()) { diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptContext.java b/scripting/java/com/sun/star/script/framework/provider/ScriptContext.java index d3266a382f72..6532c5f6a95a 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ScriptContext.java +++ b/scripting/java/com/sun/star/script/framework/provider/ScriptContext.java @@ -47,7 +47,7 @@ public class ScriptContext extends PropertySet implements XScriptContext public Integer m_iStorageID = null; public XComponentContext m_xComponentContext = null; - public ScriptContext( XComponentContext xmComponentContext, + private ScriptContext( XComponentContext xmComponentContext, XDesktop xDesktop, XModel xModel, XScriptInvocationContext xInvocContext) { this.m_xDeskTop = xDesktop; diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java index 28c6a4f6e4f3..130c44bb37ab 100644 --- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java +++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java @@ -326,7 +326,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor class closeHandler implements Runnable { URL url; - closeHandler( URL url ) + private closeHandler( URL url ) { this.url = url; } diff --git a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java index 42cd8f0fa16b..01f2db7858fa 100644 --- a/scripting/java/org/openoffice/idesupport/SVersionRCFile.java +++ b/scripting/java/org/openoffice/idesupport/SVersionRCFile.java @@ -68,7 +68,7 @@ public class SVersionRCFile { this(DEFAULT_NAME); } - public SVersionRCFile(String name) { + private SVersionRCFile(String name) { sversionrc = new File(name); versions = new ArrayList<OfficeInstallation>(5); } |