This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git


The following commit(s) were added to refs/heads/master by this push:
     new 9159f8b  ResultSetIterator.next() does not check if it is already at 
the end of the result set (SpotBugs CheckResultSet)
9159f8b is described below

commit 9159f8b84ae4c43c210c045445b08549e2e1f43e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed May 22 11:07:10 2024 -0400

    ResultSetIterator.next() does not check if it is already at the end of
    the result set (SpotBugs CheckResultSet)
---
 src/test/java/org/apache/commons/dbutils/ResultSetIteratorTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/test/java/org/apache/commons/dbutils/ResultSetIteratorTest.java 
b/src/test/java/org/apache/commons/dbutils/ResultSetIteratorTest.java
index 3357245..752d9a7 100644
--- a/src/test/java/org/apache/commons/dbutils/ResultSetIteratorTest.java
+++ b/src/test/java/org/apache/commons/dbutils/ResultSetIteratorTest.java
@@ -58,6 +58,7 @@ public class ResultSetIteratorTest extends BaseTestCase {
         assertEquals("SIX", row[2]);
 
         assertFalse(iter.hasNext());
+        assertTrue(iter.next().length == 0);
     }
 
     @Test

Reply via email to