Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18039/src/org/htmlparser/tests/utilTests
Modified Files:
BeanTest.java SortTest.java CharacterTranslationTest.java
Log Message:
Remove unused variables and other fixes exposed by turning on compiler warnings.
Index: BeanTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests/BeanTest.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** BeanTest.java 2 Jan 2004 16:24:57 -0000 1.49
--- BeanTest.java 31 Jul 2004 16:42:32 -0000 1.50
***************
*** 197,201 ****
"Nodes before and after serialization differ",
((Node)vector.remove (0)).toHtml (),
! ((Node)enumeration.nextNode ()).toHtml ());
}
--- 197,201 ----
"Nodes before and after serialization differ",
((Node)vector.remove (0)).toHtml (),
! enumeration.nextNode ().toHtml ());
}
***************
*** 225,229 ****
"Nodes before and after serialization differ",
((Node)vector.remove (0)).toHtml (),
! ((Node)enumeration.nextNode ()).toHtml ());
}
--- 225,229 ----
"Nodes before and after serialization differ",
((Node)vector.remove (0)).toHtml (),
! enumeration.nextNode ().toHtml ());
}
Index: SortTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests/SortTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** SortTest.java 2 Jan 2004 16:24:57 -0000 1.11
--- SortTest.java 31 Jul 2004 16:42:32 -0000 1.12
***************
*** 141,147 ****
ret = lastModified () - f.lastModified ();
! if (ret < (long)Integer.MIN_VALUE)
ret = Integer.MIN_VALUE;
! if (ret > (long)Integer.MAX_VALUE)
ret = Integer.MAX_VALUE;
--- 141,147 ----
ret = lastModified () - f.lastModified ();
! if (ret < Integer.MIN_VALUE)
ret = Integer.MIN_VALUE;
! if (ret > Integer.MAX_VALUE)
ret = Integer.MAX_VALUE;
Index: CharacterTranslationTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests/CharacterTranslationTest.java,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** CharacterTranslationTest.java 17 Jul 2004 13:45:03 -0000 1.45
--- CharacterTranslationTest.java 31 Jul 2004 16:42:32 -0000 1.46
***************
*** 156,160 ****
* The working parser.
*/
! protected Parser parser;
protected String nl = System.getProperty ("line.separator", "\n");
--- 156,160 ----
* The working parser.
*/
! protected Parser mParser;
protected String nl = System.getProperty ("line.separator", "\n");
***************
*** 169,173 ****
throws ParserException
{
! parser = new Parser ("http://www.w3.org/TR/REC-html40/sgml/entities.html");
}
--- 169,173 ----
throws ParserException
{
! mParser = new Parser ("http://www.w3.org/TR/REC-html40/sgml/entities.html");
}
***************
*** 521,525 ****
// Run through an enumeration of html elements, and pick up
// only those that are plain string.
! for (NodeIterator e = parser.elements (); e.hasMoreNodes ();)
{
node = e.nextNode ();
--- 521,525 ----
// Run through an enumeration of html elements, and pick up
// only those that are plain string.
! for (NodeIterator e = mParser.elements (); e.hasMoreNodes ();)
{
node = e.nextNode ();
|