Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 14126 invoked from network); 19 Dec 2005 12:46:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 12:46:54 -0000 Received: (qmail 3151 invoked by uid 500); 19 Dec 2005 12:46:53 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 3093 invoked by uid 500); 19 Dec 2005 12:46:53 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 3081 invoked by uid 99); 19 Dec 2005 12:46:53 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 04:46:52 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 956F6C9 for ; Mon, 19 Dec 2005 13:46:31 +0100 (CET) Message-ID: <14200283.1134996391571.JavaMail.jira@ajax.apache.org> Date: Mon, 19 Dec 2005 13:46:31 +0100 (CET) From: "Ersin Er (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSNICKERS-116) StringUtils methods' names and javadocs does not reflect exactly what they do In-Reply-To: <1792136899.1133459310113.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSNICKERS-116?page=all ] Ersin Er closed DIRSNICKERS-116: -------------------------------- OK, sorry :-) > StringUtils methods' names and javadocs does not reflect exactly what they do > ----------------------------------------------------------------------------- > > Key: DIRSNICKERS-116 > URL: http://issues.apache.org/jira/browse/DIRSNICKERS-116 > Project: Directory ASN1 > Type: Improvement > Components: General > Reporter: Ersin Er > Assignee: Emmanuel Lecharny > Priority: Trivial > > There are to conversion methods in StringUtils class for String <-> UTF-8 transformation. > Here is the first one: > /** > * Return an UTF-8 encoded String > * @param bytes The byte array to be transformed to a String > * @return A String. > */ > public static String toUtf8( byte[] bytes ) > { > ... > It name should be changed to something like fromUtf8 or Utf8ToString and the definition in javadoc may be "Return a String converted from its UTF-8 encoded byte[] representation" > And one more method: > /** > * Return an UTF-8 encoded String > * @param string The string to be transformed to a byte array > * @return The transformed byte array > */ > public static byte[] getBytesUtf8( String string ) > { > ... > This methods javadoc may be "Return UTF-8 encoded byte[] representation of a String" > (PS: Sorry for filing this trivial issue but currently I work on a branch and I do not want to cause a mess here.) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira