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 /swext | |
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 'swext')
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/Helper.java | 10 | ||||
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java index 5900e9aa96cd..b2c618d08f03 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java +++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java @@ -677,7 +677,7 @@ public class Helper } } - static private class HTMLParse extends HTMLEditorKit + private static class HTMLParse extends HTMLEditorKit { @Override @@ -687,12 +687,12 @@ public class Helper } } - static protected HTMLEditorKit.Parser GetHTMLParser() + protected static HTMLEditorKit.Parser GetHTMLParser() { return new HTMLParse().getParser(); } - static private boolean LoginReportsError( String sRespond ) + private static boolean LoginReportsError( String sRespond ) { boolean bResult = true; if ( sRespond != null ) @@ -715,7 +715,7 @@ public class Helper return bResult; } - static private String GetLoginToken( String sLoginPage ) + private static String GetLoginToken( String sLoginPage ) { String sResult = ""; if ( sLoginPage != null && sLoginPage.length() > 0 ) @@ -738,7 +738,7 @@ public class Helper return sResult; } - static protected HostConfiguration Login( URI aMainURL, String sWikiUser, String sWikiPass, XComponentContext xContext ) + protected static HostConfiguration Login( URI aMainURL, String sWikiUser, String sWikiPass, XComponentContext xContext ) throws java.io.IOException, WikiCancelException { HostConfiguration aHostConfig = null; diff --git a/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java b/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java index 70af8831e505..784bc7774e11 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java +++ b/swext/mediawiki/src/com/sun/star/wiki/MainThreadDialogExecutor.java @@ -36,7 +36,7 @@ public class MainThreadDialogExecutor implements XCallback private boolean m_bCalled = false; private boolean m_bClose = false; - static public boolean Show( XComponentContext xContext, WikiDialog aWikiDialog ) + public static boolean Show( XComponentContext xContext, WikiDialog aWikiDialog ) { MainThreadDialogExecutor aExecutor = new MainThreadDialogExecutor( aWikiDialog ); return GetCallback( xContext, aExecutor ); @@ -44,13 +44,13 @@ public class MainThreadDialogExecutor implements XCallback - static public boolean Execute( XComponentContext xContext, XMessageBox xMessageBox ) + public static boolean Execute( XComponentContext xContext, XMessageBox xMessageBox ) { MainThreadDialogExecutor aExecutor = new MainThreadDialogExecutor( xMessageBox ); return GetCallback( xContext, aExecutor ); } - static public boolean Close( XComponentContext xContext, XDialog xDialog ) + public static boolean Close( XComponentContext xContext, XDialog xDialog ) { MainThreadDialogExecutor aExecutor = new MainThreadDialogExecutor( xDialog ); aExecutor.m_bClose = true; @@ -58,7 +58,7 @@ public class MainThreadDialogExecutor implements XCallback return GetCallback( xContext, aExecutor ); } - static private boolean GetCallback( XComponentContext xContext, MainThreadDialogExecutor aExecutor ) + private static boolean GetCallback( XComponentContext xContext, MainThreadDialogExecutor aExecutor ) { try { |