OpenJDK / jdk / jdk12
changeset 4977:81902a400bbf
6929382: Various core classes in util and elsewhere are missing @param <T> tags
Reviewed-by: dholmes, martin
author | darcy |
---|---|
date | Wed, 24 Feb 2010 10:48:18 -0800 |
parents | 7419a22f407c |
children | 6bee79de5db6 |
files | jdk/src/share/classes/java/lang/Iterable.java jdk/src/share/classes/java/util/Collection.java jdk/src/share/classes/java/util/Iterator.java jdk/src/share/classes/java/util/List.java |
diffstat | 4 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/share/classes/java/lang/Iterable.java Tue Feb 23 18:21:31 2010 +0000 +++ b/jdk/src/share/classes/java/lang/Iterable.java Wed Feb 24 10:48:18 2010 -0800 @@ -27,8 +27,12 @@ import java.util.Iterator; -/** Implementing this interface allows an object to be the target of - * the "foreach" statement. +/** + * Implementing this interface allows an object to be the target of + * the "foreach" statement. + * + * @param <T> the type of elements returned by the iterator + * * @since 1.5 */ public interface Iterable<T> {
--- a/jdk/src/share/classes/java/util/Collection.java Tue Feb 23 18:21:31 2010 +0000 +++ b/jdk/src/share/classes/java/util/Collection.java Wed Feb 24 10:48:18 2010 -0800 @@ -103,6 +103,8 @@ * <a href="{@docRoot}/../technotes/guides/collections/index.html"> * Java Collections Framework</a>. * + * @param <E> the type of elements in this collection + * * @author Josh Bloch * @author Neal Gafter * @see Set
--- a/jdk/src/share/classes/java/util/Iterator.java Tue Feb 23 18:21:31 2010 +0000 +++ b/jdk/src/share/classes/java/util/Iterator.java Wed Feb 24 10:48:18 2010 -0800 @@ -41,6 +41,8 @@ * <a href="{@docRoot}/../technotes/guides/collections/index.html"> * Java Collections Framework</a>. * + * @param <E> the type of elements returned by this iterator + * * @author Josh Bloch * @see Collection * @see ListIterator
--- a/jdk/src/share/classes/java/util/List.java Tue Feb 23 18:21:31 2010 +0000 +++ b/jdk/src/share/classes/java/util/List.java Wed Feb 24 10:48:18 2010 -0800 @@ -89,6 +89,8 @@ * <a href="{@docRoot}/../technotes/guides/collections/index.html"> * Java Collections Framework</a>. * + * @param <E> the type of elements in this list + * * @author Josh Bloch * @author Neal Gafter * @see Collection