You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2011/09/07 05:03:42 UTC
svn commit: r1165984 -
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java
Author: ggregory
Date: Wed Sep 7 03:03:42 2011
New Revision: 1165984
URL: http://svn.apache.org/viewvc?rev=1165984&view=rev
Log:
Iterator always deals Strings (FindBugs).
Modified:
commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java
Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java?rev=1165984&r1=1165983&r2=1165984&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java Wed Sep 7 03:03:42 2011
@@ -291,7 +291,7 @@ public class LineIteratorTestCase extend
LineIterator iterator = FileUtils.lineIterator(testFile, encoding);
try {
// get
- assertTrue("Line expected", iterator.next() instanceof String);
+ assertNotNull("Line expected", iterator.next());
assertTrue("More expected", iterator.hasNext());
// close