Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 30534 invoked from network); 8 Feb 2010 06:45:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2010 06:45:50 -0000 Received: (qmail 9191 invoked by uid 500); 8 Feb 2010 06:45:50 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 8975 invoked by uid 500); 8 Feb 2010 06:45:49 -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 8965 invoked by uid 99); 8 Feb 2010 06:45:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 06:45:49 +0000 X-ASF-Spam-Status: No, hits=-1997.2 required=10.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Feb 2010 06:45:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 574DE29A0014 for ; Sun, 7 Feb 2010 22:45:28 -0800 (PST) Message-ID: <789529453.115491265611528356.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Feb 2010 06:45:28 +0000 (UTC) From: "Chandrashekar M (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-589) StringUtils: indexOf("", String) and indexOf("", char) have different behaviour In-Reply-To: <1407124877.105491265523512047.JavaMail.jira@brutus.apache.org> 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-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830848#action_12830848 ] Chandrashekar M commented on LANG-589: -------------------------------------- StringUtils.indexOf("","") returns 0 StringUtils.indexOf("","a") returns -1 StringUtils.indexOf("",'') cant be given StringUtils.indexOf("",'c') returns -1 I think API is working correctly or is there any other scenario where it behaves differently? > StringUtils: indexOf("", String) and indexOf("", char) have different behaviour > ------------------------------------------------------------------------------- > > Key: LANG-589 > URL: https://issues.apache.org/jira/browse/LANG-589 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Reporter: Henri Yandell > Fix For: 2.5, 3.0 > > > One returns -1, the other returns 0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.