diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 13:30:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-11 09:34:00 +0000 |
commit | efd4bfa818e262d7dc219ac3ceb85526fedc732c (patch) | |
tree | 932b54f6c3689d3c087f4f3911f66695c8817229 /qadevOOo | |
parent | a6f4fde8baf3eeb36820d18ffad84192e995145f (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 'qadevOOo')
5 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/runner/complexlib/ShowTargets.java b/qadevOOo/runner/complexlib/ShowTargets.java index 210ad33851fe..f655e1330c1a 100644 --- a/qadevOOo/runner/complexlib/ShowTargets.java +++ b/qadevOOo/runner/complexlib/ShowTargets.java @@ -83,7 +83,7 @@ public class ShowTargets } } - static private String getShortTestDescription( Class<?> _testClass ) + private static String getShortTestDescription( Class<?> _testClass ) { java.lang.reflect.Method getShortDescriptionMethod = null; try { getShortDescriptionMethod = _testClass.getMethod( "getShortTestDescription", new Class[]{} ); } diff --git a/qadevOOo/runner/org/openoffice/RunnerService.java b/qadevOOo/runner/org/openoffice/RunnerService.java index 99f3b1592e7a..9240f6e1320d 100644 --- a/qadevOOo/runner/org/openoffice/RunnerService.java +++ b/qadevOOo/runner/org/openoffice/RunnerService.java @@ -51,9 +51,9 @@ import com.sun.star.uno.XInterface; public class RunnerService implements XJob, XServiceInfo, XTypeProvider, XPropertyAccess { - static public final String __serviceName = "org.openoffice.Runner"; - static public final String __implName = "org.openoffice.RunnerService"; - static private XMultiServiceFactory xMSF = null; + public static final String __serviceName = "org.openoffice.Runner"; + public static final String __implName = "org.openoffice.RunnerService"; + private static XMultiServiceFactory xMSF = null; public Object execute(NamedValue[] args) { // construct valid arguments from the given stuff diff --git a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java index 77e243670cee..7ce7a80b618d 100644 --- a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java +++ b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java @@ -72,11 +72,11 @@ public class MyPersistObject implements XPersistObject, XTypeProvider, } } - static private final boolean verbose = false; + private static final boolean verbose = false; - static public final String __serviceName = + public static final String __serviceName = "com.sun.star.cmp.PersistObject"; - static public final String __implName = + public static final String __implName = "com.sun.star.cmp.MyPersistObject"; // lots of props to write diff --git a/qadevOOo/testdocs/qadevlibs/source/test/Job.java b/qadevOOo/testdocs/qadevlibs/source/test/Job.java index d180d557b19b..40d0c09c3c7a 100644 --- a/qadevOOo/testdocs/qadevlibs/source/test/Job.java +++ b/qadevOOo/testdocs/qadevlibs/source/test/Job.java @@ -30,9 +30,9 @@ import com.sun.star.comp.loader.FactoryHelper; public class Job { - static public class _Implementation implements XServiceInfo, XTypeProvider, + public static class _Implementation implements XServiceInfo, XTypeProvider, XJob, XNamed { - static private final String __serviceName = "test.Job"; + private static final String __serviceName = "test.Job"; Object oDoc = null; String actionType = null; String actionParm = null; diff --git a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java index 643e6fb384d8..17f29a930b66 100644 --- a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java @@ -62,9 +62,9 @@ import util.FormTools; * @see ifc.sheet._XCellRangeReferrer */ public class ScViewPaneObj extends TestCase { - static private XSpreadsheetDocument xSpreadsheetDoc; - static private SOfficeFactory SOF; - static private XInterface oObj; + private static XSpreadsheetDocument xSpreadsheetDoc; + private static SOfficeFactory SOF; + private static XInterface oObj; /** * Creates Spreadsheet document. |