8215112: String::transform spec clarification
authorjlaskey
Wed, 09 Jan 2019 15:23:11 -0400
changeset 53230 b5f085197234
parent 53229 76a4b08fdf59
child 53231 ee1f64096d7c
8215112: String::transform spec clarification Reviewed-by: smarks
src/java.base/share/classes/java/lang/String.java
--- a/src/java.base/share/classes/java/lang/String.java	Wed Jan 09 08:52:47 2019 -0800
+++ b/src/java.base/share/classes/java/lang/String.java	Wed Jan 09 15:23:11 2019 -0400
@@ -2982,6 +2982,9 @@
      * This method allows the application of a function to {@code this}
      * string. The function should expect a single String argument
      * and produce an {@code R} result.
+     * <p>
+     * Any exception thrown by {@code f()} will be propagated to the
+     * caller.
      *
      * @param f    functional interface to a apply
      *