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/com/sun | |
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/com/sun')
5 files changed, 6 insertions, 6 deletions
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; } |