Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 548D317A12 for ; Mon, 3 Nov 2014 12:42:34 +0000 (UTC) Received: (qmail 11910 invoked by uid 500); 3 Nov 2014 12:42:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11813 invoked by uid 500); 3 Nov 2014 12:42:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 11802 invoked by uid 99); 3 Nov 2014 12:42:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 12:42:33 +0000 Date: Mon, 3 Nov 2014 12:42:33 +0000 (UTC) From: "Colin Casey (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-1059) Capitalize javadoc is incorrect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colin Casey updated LANG-1059: ------------------------------ Description: 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. capitilize("'word'") is an example where the current docs are false (note single-quote is first character but not first letter and noting gets capitalized) was: The below also applies to uncapitalize. Currently the javadocs say: 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: Capitalizes a String changing the first *character* to title case as per Character.toTitleCase(char). No other letters are changed. capitilize("'word'") is an example where the current docs are false (note single-quote is first character but not first letter and noting gets capitalized) > 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. > capitilize("'word'") is an example where the current docs are false (note single-quote is first character but not first letter and noting gets capitalized) -- This message was sent by Atlassian JIRA (v6.3.4#6332)