[
https://issues.apache.org/jira/browse/LANG-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved LANG-1059.
------------------------
Resolution: Fixed
Fix Version/s: 3.5
Repository: commons-lang
Updated Branches:
refs/heads/master 78e2f4c12 -> 529964961
LANG-1059 Capitalize javadoc is incorrect
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/52996496
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/52996496
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/52996496
Branch: refs/heads/master
Commit: 529964961fd1575013297bc6d4db4528133ee371
Parents: 78e2f4c
Author: Sebb <[email protected]>
Authored: Fri Jun 12 18:06:46 2015 +0100
Committer: Sebb <[email protected]>
Committed: Fri Jun 12 18:06:46 2015 +0100
----------------------------------------------------------------------
src/changes/changes.xml | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
> Capitalize javadoc is incorrect
> -------------------------------
>
> Key: LANG-1059
> URL: https://issues.apache.org/jira/browse/LANG-1059
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.3.2
> Reporter: Colin Casey
> Priority: Minor
> Fix For: 3.5
>
>
> The below also applies to uncapitalize.
> Currently the javadocs say:
> bq. Capitalizes a String changing the first letter to title case as per
> Character.toTitleCase(char). No other letters are changed.
> A more accurate description would be:
> bq. Capitalizes a String changing the first *character* to title case as per
> Character.toTitleCase(char). No other letters are changed.
> capitalize("'word'") is an example where the current docs are false (note
> single-quote is first character but not first letter and nothing gets
> capitalized)
> This may in fact be a bug if the current docs are correct.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)