classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [generics] Patch: FYI: Collection fixlet


From: Tom Tromey
Subject: [cp-patches] [generics] Patch: FYI: Collection fixlet
Date: 03 Nov 2004 22:03:32 -0700

I'm checking this in on the generics branch.

This fixes the return type of a method.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>
        * java/util/Collection.java (iterator): Fixed return type.

Index: java/util/Collection.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Collection.java,v
retrieving revision 1.9.2.1
diff -u -r1.9.2.1 Collection.java
--- java/util/Collection.java 5 Aug 2004 21:09:36 -0000 1.9.2.1
+++ java/util/Collection.java 4 Nov 2004 05:06:35 -0000
@@ -200,7 +200,7 @@
    *
    * @return an Iterator over the elements of this collection, in any order.
    */
-  Iterator iterator();
+  Iterator<E> iterator();
 
   /**
    * Remove a single occurrence of an object from this collection. That is,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]