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

StringTokenizer.nextToken(CharSequence) in addition to StringTokenizer.nextToken(String)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 6
    • core-libs
    • None
    • generic
    • generic

      With the introduction of the CharSequence interface,the String class is no longer the lowest-common-denominatorfor character data, and yet String argumentsare still a pervasive requirement throughout the API.

      All API methods currently specifying String argumentsshould be relaxed to CharSequence arguments unlessthey require immutability, equals(), hashCode(),or other String-specific behavior.

      This change would not affect any existing code.

      Here are a few candidate methodsfound by simply searching the API for the string,err, I mean the CharSequence ;-)
      ---> "(String"

      StringTokenizer.nextToken(String delim)

      [ other methods in java.lang, javax.swing, etc removed from this list ]

            Unassigned Unassigned
            iris Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: