summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Spreadsheet
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/DevelopersGuide/Spreadsheet
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/DevelopersGuide/Spreadsheet')
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java8
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java16
2 files changed, 12 insertions, 12 deletions
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
index e6d6830a48ed..5c9a2b2f5611 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
@@ -108,15 +108,15 @@ class ExampleAddInThread extends Thread
public class ExampleAddIn
{
- static public class _ExampleAddIn extends com.sun.star.lib.uno.helper.WeakBase
+ public static class _ExampleAddIn extends com.sun.star.lib.uno.helper.WeakBase
implements org.openoffice.sheet.addin.XExampleAddIn,
com.sun.star.sheet.XAddIn,
com.sun.star.lang.XServiceName,
com.sun.star.lang.XServiceInfo
{
- static private final String aExampleService = "org.openoffice.sheet.addin.ExampleAddIn";
- static private final String aAddInService = "com.sun.star.sheet.AddIn";
- static private final String aImplName = _ExampleAddIn.class.getName();
+ private static final String aExampleService = "org.openoffice.sheet.addin.ExampleAddIn";
+ private static final String aAddInService = "com.sun.star.sheet.AddIn";
+ private static final String aImplName = _ExampleAddIn.class.getName();
private static final short FUNCTION_INVALID = -1;
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index bea38f1ef896..5fab2ab13c7f 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -40,13 +40,13 @@ import com.sun.star.sheet.DataPilotFieldFilter;
class ExampleSettings
{
- static public final int nDimensionCount = 6;
- static public final int nValueDimension = 4;
- static public final int nDataDimension = 5;
- static public final String [] aDimensionNames = {
+ public static final int nDimensionCount = 6;
+ public static final int nValueDimension = 4;
+ public static final int nDataDimension = 5;
+ public static final String [] aDimensionNames = {
"ones", "tens", "hundreds", "thousands", "value", "" };
- static public final String getMemberName( int nMember )
+ public static final String getMemberName( int nMember )
{
return String.valueOf( nMember );
}
@@ -752,7 +752,7 @@ public class ExampleDataPilotSource
{
// implementation of com.sun.star.sheet.DataPilotSource
- static public class _ExampleDataPilotSource implements
+ public static class _ExampleDataPilotSource implements
com.sun.star.sheet.XDimensionsSupplier,
com.sun.star.sheet.XDataPilotResults,
com.sun.star.util.XRefreshable,
@@ -760,8 +760,8 @@ public class ExampleDataPilotSource
com.sun.star.lang.XInitialization,
com.sun.star.lang.XServiceInfo
{
- static private final String aServiceName = "com.sun.star.sheet.DataPilotSource";
- static private final String aImplName = _ExampleDataPilotSource.class.getName();
+ private static final String aServiceName = "com.sun.star.sheet.DataPilotSource";
+ private static final String aImplName = _ExampleDataPilotSource.class.getName();
private final ExampleSettings aSettings = new ExampleSettings();
private ExampleDimensions aDimensions;