summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:14:08 +0200
committerNoel Grandin <noel@peralex.com>2014-08-12 12:16:37 +0200
commite701b3f732fa7f70cb273183e9ae8dbfd840f5e4 (patch)
tree8bcf687f10ccd70be0882360d2155378993cef26 /odk
parentcc4d76145f7b92992b885cdc58b4534e8c024ac5 (diff)
java: reduce scope, make constants private
found by UCDetector Change-Id: Ide9975e361ed17ac8cdcbe67ba74c563a9392d57
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java32
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java8
4 files changed, 25 insertions, 25 deletions
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index eb1c5770f784..67c2d26bac9b 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -68,7 +68,7 @@ public class DialogComponent {
public static class _DialogComponent
implements XTypeProvider, XServiceInfo, XTestDialogHandler, XDialogEventHandler {
- static final String __serviceName= "com.sun.star.test.TestDialogHandler";
+ private static final String __serviceName= "com.sun.star.test.TestDialogHandler";
static byte[] _implementationId;
private XComponentContext m_xCmpCtx;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
index 66481a697583..92dcacbab235 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
@@ -68,10 +68,10 @@ public class DocumentView extends JFrame
* These command strings are used to identify a received action
* of buttons on which we listen for action events.
*/
- public static final String COMMAND_OPEN = "open" ;
- public static final String COMMAND_SAVE = "save" ;
- public static final String COMMAND_EXPORT = "export" ;
- public static final String COMMAND_EXIT = "exit" ;
+ private static final String COMMAND_OPEN = "open" ;
+ private static final String COMMAND_SAVE = "save" ;
+ private static final String COMMAND_EXPORT = "export" ;
+ private static final String COMMAND_EXIT = "exit" ;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index 1b3289e46ca1..f34f6f9a96cc 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -67,11 +67,11 @@ public class StatusView extends JPanel
* const
* These URL's describe available feature states.
*/
- public static final String FEATUREURL_FONT = "slot:10007";
- public static final String FEATUREURL_SIZE = "slot:10015";
- public static final String FEATUREURL_BOLD = "slot:10009";
- public static final String FEATUREURL_ITALIC = "slot:10008";
- public static final String FEATUREURL_UNDERLINE = "slot:10014";
+ private static final String FEATUREURL_FONT = "slot:10007";
+ private static final String FEATUREURL_SIZE = "slot:10015";
+ private static final String FEATUREURL_BOLD = "slot:10009";
+ private static final String FEATUREURL_ITALIC = "slot:10008";
+ private static final String FEATUREURL_UNDERLINE = "slot:10014";
@@ -79,17 +79,17 @@ public class StatusView extends JPanel
* const
* These values are used to show current state of showed feature.
*/
- public static final String FONT_OFF = "unknown" ;
- public static final String SIZE_OFF = "0.0" ;
- public static final String BOLD_OFF = "-" ;
- public static final String ITALIC_OFF = "-" ;
- public static final String UNDERLINE_OFF = "-" ;
-
- public static final String FONT_ON = "" ;
- public static final String SIZE_ON = "" ;
- public static final String BOLD_ON = "X" ;
- public static final String ITALIC_ON = "X" ;
- public static final String UNDERLINE_ON = "X" ;
+ private static final String FONT_OFF = "unknown" ;
+ private static final String SIZE_OFF = "0.0" ;
+ private static final String BOLD_OFF = "-" ;
+ private static final String ITALIC_OFF = "-" ;
+ private static final String UNDERLINE_OFF = "-" ;
+
+ private static final String FONT_ON = "" ;
+ private static final String SIZE_ON = "" ;
+ private static final String BOLD_ON = "X" ;
+ private static final String ITALIC_ON = "X" ;
+ private static final String UNDERLINE_ON = "X" ;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
index d709edd804d4..bfbf3d1a7c39 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
@@ -78,12 +78,12 @@ public class AsciiReplaceFilter
// the supported service names, the first one being the service name of the component itself
- public static final String[] m_serviceNames = { "com.sun.star.comp.ansifilter.AsciiReplaceFilter" , "com.sun.star.document.ImportFilter", "com.sun.star.document.ExportFilter" };
+ private static final String[] m_serviceNames = { "com.sun.star.comp.ansifilter.AsciiReplaceFilter" , "com.sun.star.document.ImportFilter", "com.sun.star.document.ExportFilter" };
// filterprocess states
- public static final int FILTERPROC_RUNS = 0;
- public static final int FILTERPROC_BREAK = 1;
- public static final int FILTERPROC_STOPPED = 2;
+ private static final int FILTERPROC_RUNS = 0;
+ private static final int FILTERPROC_BREAK = 1;
+ private static final int FILTERPROC_STOPPED = 2;
// member