[ 
https://issues.apache.org/jira/browse/LANG-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583681#comment-14583681
 ] 

Sebb commented on LANG-1059:
----------------------------

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/5f479e70
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/5f479e70
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/5f479e70

Branch: refs/heads/master
Commit: 5f479e70cd10a6b6d519ee5957135da9b9338dae
Parents: 0822b42
Author: Sebb <[email protected]>
Authored: Fri Jun 12 17:38:04 2015 +0100
Committer: Sebb <[email protected]>
Committed: Fri Jun 12 17:38:04 2015 +0100

LANG-1059 Capitalize javadoc is incorrect
Add test to show that first character is upcased, not the first
(alphabetic) letter that is found

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/78e2f4c1
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/78e2f4c1
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/78e2f4c1

Branch: refs/heads/master
Commit: 78e2f4c1223d45db3c5f7c20bf51586fbb566948
Parents: 5f479e7
Author: Sebb <[email protected]>
Authored: Fri Jun 12 17:45:57 2015 +0100
Committer: Sebb <[email protected]>
Committed: Fri Jun 12 17:45:57 2015 +0100


> 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
>
> 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)

Reply via email to