Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18039/src/org/htmlparser/scanners
Modified Files:
ScriptScanner.java StyleScanner.java CompositeTagScanner.java
Log Message:
Remove unused variables and other fixes exposed by turning on compiler warnings.
Index: StyleScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/StyleScanner.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** StyleScanner.java 17 Jul 2004 13:45:03 -0000 1.37
--- StyleScanner.java 31 Jul 2004 16:42:32 -0000 1.38
***************
*** 116,120 ****
// build new end tag if required
if (null == end)
! end = (Tag)lexer.getNodeFactory ().createTagNode (
lexer.getPage (), endpos, endpos, new Vector ());
ret = tag;
--- 116,120 ----
// build new end tag if required
if (null == end)
! end = lexer.getNodeFactory ().createTagNode (
lexer.getPage (), endpos, endpos, new Vector ());
ret = tag;
Index: CompositeTagScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/CompositeTagScanner.java,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** CompositeTagScanner.java 17 Jul 2004 13:45:03 -0000 1.88
--- CompositeTagScanner.java 31 Jul 2004 16:42:32 -0000 1.89
***************
*** 189,193 ****
Vector attributes = new Vector ();
attributes.addElement (new Attribute (name, null));
! Tag opener = (Tag)lexer.getNodeFactory ().createTagNode (
lexer.getPage (), next.getStartPosition (), next.getEndPosition (),
attributes);
--- 189,193 ----
Vector attributes = new Vector ();
attributes.addElement (new Attribute (name, null));
! Tag opener = lexer.getNodeFactory ().createTagNode (
lexer.getPage (), next.getStartPosition (), next.getEndPosition (),
attributes);
***************
*** 325,329 ****
attributes = new Vector ();
attributes.addElement (new Attribute (name, (String)null));
! ret = (Tag)lexer.getNodeFactory ().createTagNode (
page, position, position, attributes);
--- 325,329 ----
attributes = new Vector ();
attributes.addElement (new Attribute (name, (String)null));
! ret = lexer.getNodeFactory ().createTagNode (
page, position, position, attributes);
Index: ScriptScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/ScriptScanner.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** ScriptScanner.java 17 Jul 2004 13:45:03 -0000 1.60
--- ScriptScanner.java 31 Jul 2004 16:42:32 -0000 1.61
***************
*** 92,96 ****
language.equalsIgnoreCase ("VBScript.Encode")))
{
- int start = lexer.getPosition ();
String code = ScriptDecoder.Decode (lexer.getPage (), lexer.getCursor ());
((ScriptTag)tag).setScriptCode (code);
--- 92,95 ----
***************
*** 133,137 ****
// build new end tag if required
if (null == end)
! end = (Tag)lexer.getNodeFactory ().createTagNode (
lexer.getPage (), endpos, endpos, new Vector ());
ret = tag;
--- 132,136 ----
// build new end tag if required
if (null == end)
! end = lexer.getNodeFactory ().createTagNode (
lexer.getPage (), endpos, endpos, new Vector ());
ret = tag;
|