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

Typo in java.util.regex.Pattern.matches() doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • generic
    • generic



      Name: krC82822 Date: 05/24/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      In the documentation for the java.util.regex.Pattern.matches method with
      the signature

      public static boolean matches(String regex,
                                    CharSequence input)

      there is the following sentence:

      "If a pattern is to be multiple times, compiling it once and reusing it will be
      more efficient than invoking this method each time."

      I believe this should be "If a pattern is to be *used* multiple times..."
      (Review ID: 124965)
      ======================================================================

            shommel Scott Hommel (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: