db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util ArrayIterator.java
Date Fri, 27 Feb 2004 19:15:19 GMT
brj         2004/02/27 11:15:19

  Modified:    src/java/org/apache/ojb/broker/util ArrayIterator.java
  Log:
  fixed minor problems detected by findbugs
  
  Revision  Changes    Path
  1.3       +3 -2      db-ojb/src/java/org/apache/ojb/broker/util/ArrayIterator.java
  
  Index: ArrayIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/ArrayIterator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArrayIterator.java	17 Jun 2002 19:34:24 -0000	1.2
  +++ ArrayIterator.java	27 Feb 2004 19:15:19 -0000	1.3
  @@ -55,6 +55,7 @@
    */
   
   import java.lang.reflect.Array;
  +import java.util.NoSuchElementException;
   
   /**
    * This Iterator is used to iterate over Arrays.
  @@ -117,7 +118,7 @@
        * @exception java.util.NoSuchElementException iteration has no more
        *          elements.
        */
  -    public synchronized Object next()
  +    public synchronized Object next() throws NoSuchElementException
       {
           Object result = Array.get(myArray, position);
           position++;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message