commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1165984 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/LineIteratorTestCase.java
Date Wed, 07 Sep 2011 03:03:42 GMT
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



Mime
View raw message