commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LANG-687) Convert more of the StringUtils API to take CharSequence
Date Sun, 03 Apr 2011 23:43:05 GMT

     [ https://issues.apache.org/jira/browse/LANG-687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell closed LANG-687.
------------------------------

    Resolution: Won't Fix

All this code is rolled back - doesn't make sense to do this after discussion on the mailing
list.

svn ci -m "Rolling StringUtils and test code back to r1082046. The move to CharSequence is
theoretically desirable, but there are no common immutable CharSequence subclasses other than
String, making this a complex and useless change. Instead StrBuilder should be enhanced. LANG-687"
Sending        src/main/java/org/apache/commons/lang3/StringUtils.java
Sending        src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java
Transmitting file data ..
Committed revision 1088444.


> Convert more of the StringUtils API to take CharSequence
> --------------------------------------------------------
>
>                 Key: LANG-687
>                 URL: https://issues.apache.org/jira/browse/LANG-687
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 3.0
>
>
> Wherever possible, use CharSequence and not String in the StringUtils API.
> Here is the working list of unique method names that don't take CharSequence. Let's update
the description in place to show status.
> [DONE] abbreviate
> [DONE] abbreviateMiddle
> [DONE] center
> chomp
> chop
> [DONE] contains
> [DONE] containsAny
> containsIgnoreCase
> [DONE] containsWhitespace
> countMatches
> defaultString
> deleteWhitespace
> difference
> endsWith
> endsWithAny
> endsWithIgnoreCase
> equalsIgnoreCase
> getCommonPrefix
> [DONE] indexOf
> [DONE] indexOfAny
> [DONE] indexOfAnyBut
> indexOfIgnoreCase
> join
> [DONE] lastIndexOf
> [DONE] lastIndexOfAny
> lastIndexOfIgnoreCase
> lastOrdinalIndexOf
> [DONE] left
> [DONE] leftPad
> [DONE] lowerCase
> [DONE] mid
> normalizeSpace
> ordinalIndexOf
> overlay
> remove
> removeEnd
> removeEndIgnoreCase
> removeStart
> removeStartIgnoreCase
> repeat
> replace
> replaceChars
> replaceEach
> replaceEachRepeatedly
> replaceOnce
> reverse
> reverseDelimited
> [DONE] right
> [DONE] rightPad
> split
> splitByCharacterType
> splitByCharacterTypeCamelCase
> splitByWholeSeparator
> splitByWholeSeparatorPreserveAllTokens
> splitPreserveAllTokens
> startsWith
> startsWithAny
> startsWithIgnoreCase
> strip
> stripAll
> stripEnd
> stripStart
> stripToEmpty
> stripToNull
> [DONE] substring
> substringAfter
> substringAfterLast
> substringBefore
> substringBeforeLast
> substringBetween
> substringsBetween
> [DONE] swapCase
> trim
> trimToEmpty
> trimToNull
> [DONE] upperCase

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message