commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1536197 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java
Date Sun, 27 Oct 2013 20:32:48 GMT
Author: oheger
Date: Sun Oct 27 20:32:47 2013
New Revision: 1536197

URL: http://svn.apache.org/r1536197
Log:
Generified ResultSetIterator.

The class now implements Iterator<DynaBean>. This is a source-incompatible
change as the return value of a method changes. Maybe it has to be discussed
again whether such a change is allowed. The alternative, implementing
Iterator<Object>, would not be very satisfying though.

Modified:
    commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java?rev=1536197&r1=1536196&r2=1536197&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/ResultSetIterator.java
Sun Oct 27 20:32:47 2013
@@ -33,7 +33,7 @@ import java.util.NoSuchElementException;
  * @version $Id$
  */
 
-public class ResultSetIterator implements DynaBean, Iterator {
+public class ResultSetIterator implements DynaBean, Iterator<DynaBean> {
 
 
     // ------------------------------------------------------------ Constructor
@@ -301,7 +301,7 @@ public class ResultSetIterator implement
      *
      * @return advance to the new row and return this
      */
-    public Object next() {
+    public DynaBean next() {
 
         try {
             advance();



Mime
View raw message