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

Fix typos in String.transform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: