Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253342

Fix typos in String.transform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • core-libs
    • b17

    Description

      diff --git a/src/java.base/share/classes/java/lang/String.java b/src/java.base/share/classes/java/lang/String.java
      index 4d0ba2604f8..37066e9a4cf 100644
      --- a/src/java.base/share/classes/java/lang/String.java
      +++ b/src/java.base/share/classes/java/lang/String.java
      @@ -3180,12 +3180,12 @@ public final class String
      * 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
      + * Any exception thrown by {@code f.apply()} will be propagated to the
      * caller.
      *
      - * @param f functional interface to a apply
      + * @param f a function to apply
      *
      - * @param <R> class of the result
      + * @param <R> the type of the result
      *
      * @return the result of applying the function to this string
      *

      Attachments

        Issue Links

          Activity

            People

              prappo Pavel Rappo
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: