summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-12 09:30:14 +0200
committerAndras Timar <andras.timar@collabora.com>2015-10-15 17:12:59 +0200
commitc45c2c8fceee2b302266bf7491e0886ae6464397 (patch)
tree9cebfcdf24c7d123983318258552e45de3135fba /odk
parent047a883a5bf49224d459e3685204cf9cecee9f35 (diff)
java: 'final static' to 'static final'
this is the canonical order, and it makes the code easier to read Reviewed-on: https://gerrit.libreoffice.org/16242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org> (cherry picked from commit 0c18bedb7328493040c1a20822b345e624d6041f) Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java14
-rw-r--r--odk/examples/DevelopersGuide/UCB/ChildrenRetriever.java2
-rw-r--r--odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java2
3 files changed, 9 insertions, 9 deletions
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
index 27c578ba4270..90ce8a47b9bd 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
@@ -55,14 +55,14 @@ public class UnoDialogSample2 extends UnoDialogSample {
// define some constants used to set positions and sizes
// of controls. For further information see
// http://ui.openoffice.org/knowledge/DialogSpecificationandGuidelines.odt
- final static int nFixedTextHeight = 8;
- final static int nControlMargin = 6;
- final static int nDialogWidth = 250;
- final static int nDialogHeight = 140;
+ static final int nFixedTextHeight = 8;
+ static final int nControlMargin = 6;
+ static final int nDialogWidth = 250;
+ static final int nDialogHeight = 140;
// the default roadmap width == 80 MAPs
- final static int nRoadmapWidth = 80;
- final static int nButtonHeight = 14;
- final static int nButtonWidth = 50;
+ static final int nRoadmapWidth = 80;
+ static final int nButtonHeight = 14;
+ static final int nButtonWidth = 50;
public UnoDialogSample2(XComponentContext _xContext, XMultiComponentFactory _xMCF, Object _oUnoObject) {
diff --git a/odk/examples/DevelopersGuide/UCB/ChildrenRetriever.java b/odk/examples/DevelopersGuide/UCB/ChildrenRetriever.java
index 9764718a1751..42f0689f5320 100644
--- a/odk/examples/DevelopersGuide/UCB/ChildrenRetriever.java
+++ b/odk/examples/DevelopersGuide/UCB/ChildrenRetriever.java
@@ -123,7 +123,7 @@ public class ChildrenRetriever {
// Fill argument structure...
OpenCommandArgument2 arg = new OpenCommandArgument2();
arg.Mode = OpenMode.ALL; // FOLDER, DOCUMENTS -> simple filter
- arg.Priority = 32768; // Final static for 32768
+ arg.Priority = 32768; // static final for 32768
arg.Properties = props;
XDynamicResultSet set;
diff --git a/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java b/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java
index 95fb3e98413a..f25e6cd0fd56 100644
--- a/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java
+++ b/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java
@@ -87,7 +87,7 @@ public class DataStreamRetriever {
// Fill argument structure...
OpenCommandArgument2 arg = new OpenCommandArgument2();
arg.Mode = OpenMode.DOCUMENT;
- arg.Priority = 32768; // Final static for 32768
+ arg.Priority = 32768; // static final for 32768
// Create data sink implementation object.
XActiveDataSink dataSink = new MyActiveDataSink();