summaryrefslogtreecommitdiff
path: root/odk/examples/java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-09 13:30:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-11 09:34:00 +0000
commitefd4bfa818e262d7dc219ac3ceb85526fedc732c (patch)
tree932b54f6c3689d3c087f4f3911f66695c8817229 /odk/examples/java
parenta6f4fde8baf3eeb36820d18ffad84192e995145f (diff)
java:regulatize the order of 'final' and public/private
Make the order be 'public static' or 'private static' Just makes the code nicer to read. Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2 Reviewed-on: https://gerrit.libreoffice.org/16202 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'odk/examples/java')
-rw-r--r--odk/examples/java/Inspector/Inspector.java4
-rw-r--r--odk/examples/java/Inspector/ProtocolHandlerAddon.java2
-rw-r--r--odk/examples/java/MinimalComponent/MinimalComponent.java2
-rw-r--r--odk/examples/java/Spreadsheet/CalcAddins.java6
-rw-r--r--odk/examples/java/ToDo/ToDo.java24
5 files changed, 19 insertions, 19 deletions
diff --git a/odk/examples/java/Inspector/Inspector.java b/odk/examples/java/Inspector/Inspector.java
index a537d9c77941..fe10fac255f7 100644
--- a/odk/examples/java/Inspector/Inspector.java
+++ b/odk/examples/java/Inspector/Inspector.java
@@ -75,9 +75,9 @@ public class Inspector{
/** This class implements the method of the interface XInstanceInspector.
* Also the class implements the interfaces XServiceInfo, and XTypeProvider.
*/
- static public class _Inspector extends WeakBase implements XInstanceInspector, XServiceInfo{
+ public static class _Inspector extends WeakBase implements XInstanceInspector, XServiceInfo{
- static private final String __serviceName = "org.openoffice.InstanceInspector";
+ private static final String __serviceName = "org.openoffice.InstanceInspector";
private HashMap<String, String> aApplicationHashMap = new HashMap<String, String>();
private String sTitle = "Object Inspector";
private ArrayList<XComponent> aHiddenDocuments = new ArrayList<XComponent>();
diff --git a/odk/examples/java/Inspector/ProtocolHandlerAddon.java b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
index 80e52db58f9a..5492d217d845 100644
--- a/odk/examples/java/Inspector/ProtocolHandlerAddon.java
+++ b/odk/examples/java/Inspector/ProtocolHandlerAddon.java
@@ -65,7 +65,7 @@ public class ProtocolHandlerAddon {
/** The service name, that must be used to get an instance of this service.
*/
- static private final String[] m_serviceNames = { "com.sun.star.frame.ProtocolHandler" };
+ private static final String[] m_serviceNames = { "com.sun.star.frame.ProtocolHandler" };
/** The component context, that gives access to the service manager and all registered services.
*/
diff --git a/odk/examples/java/MinimalComponent/MinimalComponent.java b/odk/examples/java/MinimalComponent/MinimalComponent.java
index 30b984c75c46..decc2417ea67 100644
--- a/odk/examples/java/MinimalComponent/MinimalComponent.java
+++ b/odk/examples/java/MinimalComponent/MinimalComponent.java
@@ -53,7 +53,7 @@ public class MinimalComponent {
implements XInitialization, XServiceInfo {
/** The service name, that must be used to get an instance of this service.
*/
- static private final String __serviceName =
+ private static final String __serviceName =
"org.openoffice.MinimalComponent";
/** The initial component contextr, that gives access to
diff --git a/odk/examples/java/Spreadsheet/CalcAddins.java b/odk/examples/java/Spreadsheet/CalcAddins.java
index 790a71655a35..81951954e6be 100644
--- a/odk/examples/java/Spreadsheet/CalcAddins.java
+++ b/odk/examples/java/Spreadsheet/CalcAddins.java
@@ -60,7 +60,7 @@ public class CalcAddins {
* of the service description. It implements the needed interfaces.
* @implements XCalcAddins, XAddIn, XServiceName, XServiceInfo, XTypeProvider
*/
- static private class _CalcAddins extends WeakBase implements
+ private static class _CalcAddins extends WeakBase implements
XCalcAddins,
XAddIn,
XServiceName,
@@ -69,9 +69,9 @@ public class CalcAddins {
/** The component will be registered under this name.
*/
- static private final String __serviceName = "org.openoffice.sheet.addin.CalcAddins";
+ private static final String __serviceName = "org.openoffice.sheet.addin.CalcAddins";
- static private final String ADDIN_SERVICE = "com.sun.star.sheet.AddIn";
+ private static final String ADDIN_SERVICE = "com.sun.star.sheet.AddIn";
private Locale aFuncLoc;
diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java
index c22ad16ab32f..150dc1d99f10 100644
--- a/odk/examples/java/ToDo/ToDo.java
+++ b/odk/examples/java/ToDo/ToDo.java
@@ -93,21 +93,21 @@ public class ToDo {
private XMultiComponentFactory m_xMCF;
// Implementation helper variables
- static private final int INT_COLUMN_FEATURE = 0;
- static private final int INT_COLUMN_NEEDEDDAYS = 2;
- static private final int INT_COLUMN_STARTDATE = 3;
- static private final int INT_COLUMN_START_DAY_OF_WEEK = 4;
- static private final int INT_COLUMN_ENDDATE = 5;
- static private final int INT_COLUMN_END_DAY_OF_WEEK = 6;
- static private final int INT_COLUMN_DUEDATE = 7;
- static private final int INT_COLUMN_STATUS = 8;
+ private static final int INT_COLUMN_FEATURE = 0;
+ private static final int INT_COLUMN_NEEDEDDAYS = 2;
+ private static final int INT_COLUMN_STARTDATE = 3;
+ private static final int INT_COLUMN_START_DAY_OF_WEEK = 4;
+ private static final int INT_COLUMN_ENDDATE = 5;
+ private static final int INT_COLUMN_END_DAY_OF_WEEK = 6;
+ private static final int INT_COLUMN_DUEDATE = 7;
+ private static final int INT_COLUMN_STATUS = 8;
- static private final int INT_ROW_FROM = 14; // 8
+ private static final int INT_ROW_FROM = 14; // 8
- static private final int INT_ROW_HOLIDAYS_START = 4;
- static private final int INT_COLUMN_HOLIDAYS_START = 7; // 10
+ private static final int INT_ROW_HOLIDAYS_START = 4;
+ private static final int INT_COLUMN_HOLIDAYS_START = 7; // 10
- static private final String STRING_SEPARATOR = "/";
+ private static final String STRING_SEPARATOR = "/";
/** The constructor of the inner class has a XComponenContext parameter.