From b4897fbd3eae4e113e4966eb2581a2622bc24800 Mon Sep 17 00:00:00 2001 From: darcy Date: Wed, 24 Feb 2010 10:48:18 -0800 Subject: [PATCH] 6929382: Various core classes in util and elsewhere are missing @param tags Reviewed-by: dholmes, martin --- src/share/classes/java/lang/Iterable.java | 8 ++++++-- src/share/classes/java/util/Collection.java | 2 ++ src/share/classes/java/util/Iterator.java | 2 ++ src/share/classes/java/util/List.java | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/share/classes/java/lang/Iterable.java b/src/share/classes/java/lang/Iterable.java index 9463feeab..0b1e9548a 100644 --- a/src/share/classes/java/lang/Iterable.java +++ b/src/share/classes/java/lang/Iterable.java @@ -27,8 +27,12 @@ package java.lang; 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 the type of elements returned by the iterator + * * @since 1.5 */ public interface Iterable { diff --git a/src/share/classes/java/util/Collection.java b/src/share/classes/java/util/Collection.java index e7cb3c91e..c79e0cde3 100644 --- a/src/share/classes/java/util/Collection.java +++ b/src/share/classes/java/util/Collection.java @@ -103,6 +103,8 @@ package java.util; * * Java Collections Framework. * + * @param the type of elements in this collection + * * @author Josh Bloch * @author Neal Gafter * @see Set diff --git a/src/share/classes/java/util/Iterator.java b/src/share/classes/java/util/Iterator.java index 16b9c4315..fd9725de8 100644 --- a/src/share/classes/java/util/Iterator.java +++ b/src/share/classes/java/util/Iterator.java @@ -41,6 +41,8 @@ package java.util; * * Java Collections Framework. * + * @param the type of elements returned by this iterator + * * @author Josh Bloch * @see Collection * @see ListIterator diff --git a/src/share/classes/java/util/List.java b/src/share/classes/java/util/List.java index 4ce27c822..a05fe3056 100644 --- a/src/share/classes/java/util/List.java +++ b/src/share/classes/java/util/List.java @@ -89,6 +89,8 @@ package java.util; * * Java Collections Framework. * + * @param the type of elements in this list + * * @author Josh Bloch * @author Neal Gafter * @see Collection -- GitLab