diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-05 15:59:19 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-06 01:37:08 -0500 |
commit | add27e4e3bc59fdfb572404f3ea0a0a76638638c (patch) | |
tree | 5241ffe0d045f6f3c4e58cef7b62462371813ba3 /swext | |
parent | 0a8bf4b534775bb64e6baa228dce881c5c0d65a5 (diff) |
mediawiki: the assigned value is never used
Change-Id: Icb2c4477b96c6bab9004b9c7ead2272b86e78dfb
Reviewed-on: https://gerrit.libreoffice.org/11297
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/EditPageParser.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java index fb5581756a84..ebc3d8812eb9 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java +++ b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java @@ -121,9 +121,7 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback public void handleStartTag( HTML.Tag t, MutableAttributeSet a,int pos ) { // insert code to handle starting tags - String sName = ""; - String sId = ""; - String sClass = ""; + String sClass; if ( t == HTML.Tag.HEAD ) { @@ -131,7 +129,7 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback } if ( t == HTML.Tag.TEXTAREA ) { - sName = ( String ) a.getAttribute( HTML.Attribute.NAME ); + String sName = ( String ) a.getAttribute( HTML.Attribute.NAME ); if ( sName != null ) { if ( sName.equalsIgnoreCase( "wpTextbox1" ) ) @@ -142,7 +140,7 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback } else if ( t == HTML.Tag.DIV ) { - sId = ( String ) a.getAttribute( HTML.Attribute.ID ); + String sId = ( String ) a.getAttribute( HTML.Attribute.ID ); sClass = ( String ) a.getAttribute( HTML.Attribute.CLASS ); if ( sId != null ) { |