diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 12:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 68cd011c907d00493bf2bfde531c1e244819596b (patch) | |
tree | 0225318c908b00faaa701a19aaf7aa567c3582a0 /bean | |
parent | 70f56bc22fe952c75ec714e05e1bb5296491a36a (diff) |
java: reduce scope, make some methods private
found by UCDetector
Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'bean')
4 files changed, 7 insertions, 7 deletions
diff --git a/bean/com/sun/star/beans/LocalOfficeWindow.java b/bean/com/sun/star/beans/LocalOfficeWindow.java index 776b77404707..63dc9ce53b33 100644 --- a/bean/com/sun/star/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/beans/LocalOfficeWindow.java @@ -270,7 +270,7 @@ public class LocalOfficeWindow start(); } - void cancel() + private void cancel() throws java.lang.InterruptedException { aWatchedThread = null; diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index b33e32edc1a9..2717a35f964e 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -635,7 +635,7 @@ public class LocalOfficeConnection /** creates a unique pipe name. */ - static String getPipeName() + private static String getPipeName() { // turn user name into a URL and file system safe name (% chars will not work) String aPipeName = System.getProperty("user.name") + OFFICE_ID_SUFFIX; diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java index 2058860ece8e..790ddd00372e 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java @@ -254,7 +254,7 @@ public class LocalOfficeWindow * The second NamedValue has the name "XEMBED" and the value is true, when the XEmbed * protocol shall be used fore embedding the native Window. */ - protected Any getWrappedWindowHandle() + private Any getWrappedWindowHandle() { NamedValue window = new NamedValue( diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java index b81517355313..85daec2e1cf0 100644 --- a/bean/com/sun/star/comp/beans/OOoBean.java +++ b/bean/com/sun/star/comp/beans/OOoBean.java @@ -799,7 +799,7 @@ public class OOoBean @throws NoDocumentException if no document is loaded */ - public void storeToURL( + private void storeToURL( final String aURL, final com.sun.star.beans.PropertyValue aArguments[] ) throws @@ -1030,7 +1030,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar"); which can be obtained from a frame, to control toolbars. See also {@link #setAllBarsVisible setAllBarsVisible}. */ - protected void applyToolVisibilities() + private void applyToolVisibilities() { bIgnoreVisibility = true; setMenuBarVisible( bMenuBarVisible ); @@ -1050,7 +1050,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar"); which can be obtained from a frame, to control toolbars. See also {@link #setAllBarsVisible}. */ - protected boolean setToolVisible( String aProperty, String aResourceURL, + private boolean setToolVisible( String aProperty, String aResourceURL, boolean bOldValue, boolean bNewValue ) throws @@ -1318,7 +1318,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar"); a new array is created, aArgument added and the new array returned. */ - protected com.sun.star.beans.PropertyValue[] addArgument( + private com.sun.star.beans.PropertyValue[] addArgument( com.sun.star.beans.PropertyValue aArguments[], final com.sun.star.beans.PropertyValue aArgument ) { |