Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-510

Convert StringUtils API to take CharSequence

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.*
    • None

    Description

      Wherever possible, use CharSequence and not String in the StringUtils API.

      substring can go to subSequence inside code. The general substring method can be replaced with a subSequence method and substring deprecated. One question is whether to implement a CharSequence.indexOf type method. Given that it's merely a walking method(?!?), this might be quite handy and would allow a bunch of StringUtils methods to move over.

      Attachments

        1. LANG-510-indexOf.patch
          8 kB
          Henri Yandell

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bayard Henri Yandell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: