OpenJDK / lambda / lambda / jdk
changeset 8286:2783a9b4beaf
make statement consistent with Iterable/Iterator forEach
author | akhil |
---|---|
date | Mon, 22 Apr 2013 09:12:51 -0700 |
parents | 3c6ed69e14df |
children | e71845b83f26 fc62c88000cd |
files | src/share/classes/java/util/Collection.java src/share/classes/java/util/List.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/util/Collection.java Mon Apr 22 14:44:22 2013 +0200 +++ b/src/share/classes/java/util/Collection.java Mon Apr 22 09:12:51 2013 -0700 @@ -378,8 +378,8 @@ /** * Removes all of the elements of this collection that satisfy the given - * predicate. RuntimeExceptions and Errors thrown by the predicate are - * propagated to the caller. + * predicate. Errors or runtime exceptions thrown by the predicate are + * relayed to the caller. * * @implSpec * The default implementation traverses all elements of the collection using
--- a/src/share/classes/java/util/List.java Mon Apr 22 14:44:22 2013 +0200 +++ b/src/share/classes/java/util/List.java Mon Apr 22 09:12:51 2013 -0700 @@ -378,8 +378,8 @@ /** * Replaces each element of this list with the result of applying the - * operator to that element. RuntimeExceptions and Errors thrown by - * the operator are propagated to the caller. + * operator to that element. Errors or runtime exceptions thrown by + * the operator are relayed to the caller. * * @implSpec * The default implementation is equivalent to, for this {@code list}: