From add27e4e3bc59fdfb572404f3ea0a0a76638638c Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 5 Sep 2014 15:59:19 +0200 Subject: mediawiki: the assigned value is never used Change-Id: Icb2c4477b96c6bab9004b9c7ead2272b86e78dfb Reviewed-on: https://gerrit.libreoffice.org/11297 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'swext/mediawiki') 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 ) { -- cgit