diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 08:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:28 +0200 |
commit | 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch) | |
tree | 218eba20dd23c6a865cf01aa7532bf1261a69bc8 /swext | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'swext')
5 files changed, 17 insertions, 0 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java index b06c0d7d97b5..8f82364d076c 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java +++ b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java @@ -44,11 +44,13 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback { } + @Override public void handleComment( char[] data,int pos ) { // insert code to handle comments } + @Override public void handleEndTag( HTML.Tag t,int pos ) { if ( t == HTML.Tag.TEXTAREA ) @@ -69,10 +71,12 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback } } + @Override public void handleError( String errorMsg,int pos ) { } + @Override public void handleSimpleTag( HTML.Tag t, MutableAttributeSet a,int pos ) { // insert code to handle simple tags @@ -118,6 +122,7 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback } + @Override public void handleStartTag( HTML.Tag t, MutableAttributeSet a,int pos ) { // insert code to handle starting tags diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java index 20491b972790..52800a1aa3e5 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java +++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java @@ -721,6 +721,7 @@ public class Helper static private class HTMLParse extends HTMLEditorKit { + @Override public HTMLEditorKit.Parser getParser() { return super.getParser(); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java index 1570c3d635e2..384e77b79c08 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java @@ -92,6 +92,7 @@ public class WikiEditSettingDialog extends WikiDialog InitSaveCheckbox( xContext, bInitSaveCheckBox ); } + @Override public boolean show( ) { SetThrobberVisible( false ); @@ -347,6 +348,7 @@ public class WikiEditSettingDialog extends WikiDialog } } + @Override public boolean callHandlerMethod( XDialog xDialog, Object EventObject, String MethodName ) { if ( MethodName.equals( sOKMethod ) ) @@ -365,6 +367,7 @@ public class WikiEditSettingDialog extends WikiDialog m_bThreadFinished = false; m_aThread = new Thread( "com.sun.star.thread.WikiEditorSendingThread" ) { + @Override public void run() { try @@ -412,6 +415,7 @@ public class WikiEditSettingDialog extends WikiDialog return false; } + @Override public void windowClosed( EventObject e ) { ThreadStop( false ); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java index e6718572732d..48f4c424c624 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java @@ -102,6 +102,7 @@ public class WikiPropDialog extends WikiDialog{ } } + @Override public boolean show() { EnableControls( true ); @@ -113,6 +114,7 @@ public class WikiPropDialog extends WikiDialog{ return bResult; } + @Override public synchronized void ThreadStop( boolean bSelf ) { boolean bShowError = ( !bSelf && m_aThread != null && !m_bThreadFinished ); @@ -236,6 +238,7 @@ public class WikiPropDialog extends WikiDialog{ } } + @Override public boolean callHandlerMethod( XDialog xDialog, Object EventObject, String MethodName ) { if ( MethodName.equals( sSendMethod ) ) @@ -286,6 +289,7 @@ public class WikiPropDialog extends WikiDialog{ { m_aThread = new Thread( "com.sun.star.thread.WikiEditorSendingThread" ) { + @Override public void run() { try @@ -359,6 +363,7 @@ public class WikiPropDialog extends WikiDialog{ return false; } + @Override public void windowClosed( EventObject e ) { ThreadStop( false ); diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java b/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java index 755dd80304b9..95e31b1b3b1d 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java @@ -146,11 +146,13 @@ class WikiProtocolSocketFactory implements SecureProtocolSocketFactory return GetNotSoSecureSSLContext().getSocketFactory().createSocket( aSocket, sHost, nPort, bAutoClose ); } + @Override public boolean equals(Object obj) { return ((obj != null) && obj.getClass().equals(WikiProtocolSocketFactory.class)); } + @Override public int hashCode() { return WikiProtocolSocketFactory.class.hashCode(); |