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 1F4C617C1E for ; Thu, 9 Apr 2015 09:02:19 +0000 (UTC) Received: (qmail 86072 invoked by uid 500); 9 Apr 2015 09:02:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85976 invoked by uid 500); 9 Apr 2015 09:02:13 -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 85964 invoked by uid 99); 9 Apr 2015 09:02:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2015 09:02:13 +0000 Date: Thu, 9 Apr 2015 09:02:13 +0000 (UTC) From: "James Sawle (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-701) StringUtils join with var args 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-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487005#comment-14487005 ] James Sawle commented on LANG-701: ---------------------------------- The changes have been made. > StringUtils join with var args > ------------------------------ > > Key: LANG-701 > URL: https://issues.apache.org/jira/browse/LANG-701 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Reporter: Gabriele Kahlout > Priority: Minor > Fix For: Review Patch > > Attachments: VarArgJoinTest.java > > > {code:java} > final String apple = "apple"; > final String banana = "banana"; > final String orange = "orange"; > final String expected = apple + SPACE + banana + SPACE + orange; > final String actual = join(SPACE, apple, banana, orange); > final int expLength = expected.length(); > final int actLength = actual.length(); > assertEquals(expLength, actLength); > assertEquals(expected, actual); > {code} > I missed the functionality of joining strings with the space separator in one line. BTW, why space ' ' not a constant field anywhere? -- This message was sent by Atlassian JIRA (v6.3.4#6332)