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

Review all String parameters as CharSequence candidates

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs

      Name: rmT116609 Date: 11/10/2003


      A DESCRIPTION OF THE REQUEST :
      Given the recent but very limited introduction of the CharSequence
      interface, it seems that many parameters of type String are
      candidates for being generalized to being of type CharSequence.

      The highest priority candidates are those parameters whose values
      are likely to come from larger strings (in String objects that
      otherwise have to be "substringed," or in character (or byte)
      arrays that otherwise have to converted into String Objects),
      and whose methods are likely to be called frequently.

      (java.lang.<numeric type>.parse...(...) methods and java.io I/O
      methods are covered in separate enchancement requests.)



      JUSTIFICATION :
      A. It seems a logical part of the introduction of CharSequence.

      B. Callers working with CharSequence wouldn't have to create
          String objects before making calls.
      (Incident Review ID: 224696)
      ======================================================================

            iris Iris Clark
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: