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 125114C95 for ; Wed, 25 May 2011 07:44:42 +0000 (UTC) Received: (qmail 30607 invoked by uid 500); 25 May 2011 07:44:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 29671 invoked by uid 500); 25 May 2011 07:44: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 29583 invoked by uid 99); 25 May 2011 07:44:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 07:44:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 07:44:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7BF3EDDCA4 for ; Wed, 25 May 2011 07:43:47 +0000 (UTC) Date: Wed, 25 May 2011 07:43:47 +0000 (UTC) From: "Barrie Treloar (JIRA)" To: issues@commons.apache.org Message-ID: <1489666057.41668.1306309427504.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LANG-378) Add new ToStyle to support MultiLine with Indent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039003#comment-13039003 ] Barrie Treloar commented on LANG-378: ------------------------------------- *WARNING* The class as implemented is *NOT ThreadSafe*. I forgot that ToStyles where meant to be singletons and there is state kept in this class (i.e. the singleton) for use when indenting/outdenting. Obviously this isn't thread safe if two threads attempt to use this ToStyle on different objects at the same time. > Add new ToStyle to support MultiLine with Indent > ------------------------------------------------ > > Key: LANG-378 > URL: https://issues.apache.org/jira/browse/LANG-378 > Project: Commons Lang > Issue Type: New Feature > Components: lang.builder.* > Affects Versions: 2.3 > Reporter: Barrie Treloar > Priority: Minor > Fix For: 3.x > > Attachments: LANG-378-patch.txt, MultiLineWithIndentToStyle.zip > > > Multiline support places everything on a new line with no indentation to help in readability. > Attached is a patch (with tests) to support Multiline behaviour with indentation. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira