Skip to content

Commit c8e18ac

Browse files
committed
Iterator always deals Strings (FindBugs).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1165984 13f79535-47bb-0310-9956-ffa450edef68
1 parent b5fb42a commit c8e18ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/io/LineIteratorTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void testCloseEarly() throws Exception {
291291
LineIterator iterator = FileUtils.lineIterator(testFile, encoding);
292292
try {
293293
// get
294-
assertTrue("Line expected", iterator.next() instanceof String);
294+
assertNotNull("Line expected", iterator.next());
295295
assertTrue("More expected", iterator.hasNext());
296296

297297
// close

0 commit comments

Comments
 (0)