diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:14:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 12:16:37 +0200 |
commit | e701b3f732fa7f70cb273183e9ae8dbfd840f5e4 (patch) | |
tree | 8bcf687f10ccd70be0882360d2155378993cef26 /swext | |
parent | -Werror,-Wunused-private-field (diff) | |
download | core-e701b3f732fa7f70cb273183e9ae8dbfd840f5e4.tar.gz core-e701b3f732fa7f70cb273183e9ae8dbfd840f5e4.zip |
java: reduce scope, make constants private
found by UCDetector
Change-Id: Ide9975e361ed17ac8cdcbe67ba74c563a9392d57
Diffstat (limited to 'swext')
3 files changed, 11 insertions, 11 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java index 52800a1aa3e5..5cdedf4541a9 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java +++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java @@ -107,7 +107,7 @@ public class Helper public final static int DLG_MEDIAWIKIEXTENSION_STRING = 31; public final static int DLG_WIKIPAGEEXISTS_LABEL1 = 32; - public final static int STRINGS_NUM = 33; + private final static int STRINGS_NUM = 33; private final static String[] m_pEntryNames = { "GeneralSendError", "NoWikiFilter", diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java index c5accfabd944..83980c05c895 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java @@ -57,7 +57,7 @@ public final class WikiEditorImpl extends WeakBase public static final String[] supportedServiceNames = {"com.sun.star.frame.ProtocolHandler"}; public static final Class implementationClass = WikiEditorImpl.class; // protocol name that this protocol handler handles - public static final String protocolName = "vnd.com.sun.star.wiki:"; + private static final String protocolName = "vnd.com.sun.star.wiki:"; private final XComponentContext m_xContext; private Map<String, com.sun.star.frame.XStatusListener> m_statusListeners = new HashMap<String, com.sun.star.frame.XStatusListener>(); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java index 2ec2b33bf834..417308c7fd43 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java @@ -39,15 +39,15 @@ public final class WikiOptionsEventHandlerImpl extends WeakBase static final String[] m_pServiceNames = { "com.sun.star.wiki.WikiOptionsEventHandler" }; static final String m_sImplementationName = WikiOptionsEventHandlerImpl.class.getName(); - static final String sExternalEvent = "external_event"; - static final String sAdd = "Add"; - static final String sEdit = "Edit"; - static final String sRemove = "Remove"; - static final String sListStatus = "ListStatus"; - static final String sListEdit = "ListEdit"; - static final String sInitialize = "initialize"; - static final String sOk = "ok"; - static final String sBack = "back"; + private static final String sExternalEvent = "external_event"; + private static final String sAdd = "Add"; + private static final String sEdit = "Edit"; + private static final String sRemove = "Remove"; + private static final String sListStatus = "ListStatus"; + private static final String sListEdit = "ListEdit"; + private static final String sInitialize = "initialize"; + private static final String sOk = "ok"; + private static final String sBack = "back"; private XComponentContext m_xContext; private XDialog m_xDialog; |