Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA70C200BB5 for ; Sun, 6 Nov 2016 12:15:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DDEF5160AFC; Sun, 6 Nov 2016 11:15:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 32477160AD0 for ; Sun, 6 Nov 2016 12:15:11 +0100 (CET) Received: (qmail 7621 invoked by uid 500); 6 Nov 2016 11:15:10 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 7612 invoked by uid 99); 6 Nov 2016 11:15:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2016 11:15:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0173DE09D3; Sun, 6 Nov 2016 11:15:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pascalschumacher@apache.org To: commits@commons.apache.org Message-Id: <53eb2ee957054817b3287e9c70842594@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [lang] LANG-1274: StrSubstitutor should state its thread safety (closes #207) Date: Sun, 6 Nov 2016 11:15:09 +0000 (UTC) archived-at: Sun, 06 Nov 2016 11:15:12 -0000 Repository: commons-lang Updated Branches: refs/heads/master ff4497aff -> ea666d523 LANG-1274: StrSubstitutor should state its thread safety (closes #207) Add paragraph to class javadoc stating that StrSubstitutor is not thread safe. Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/ea666d52 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/ea666d52 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/ea666d52 Branch: refs/heads/master Commit: ea666d523021a3c33294030e7c6ac49a77be543a Parents: ff4497a Author: pascalschumacher Authored: Fri Nov 4 18:32:39 2016 +0100 Committer: pascalschumacher Committed: Sun Nov 6 12:15:01 2016 +0100 ---------------------------------------------------------------------- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ea666d52/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ff056bb..b2a886f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -56,6 +56,7 @@ The type attribute can be add,update,fix,remove. Add StringUtils#unwrap StringUtils#abbreviate should support 'custom ellipses' parameter Add StringUtils#isAnyNotEmpty and #isAnyNotBlank + StrSubstitutor should state its thread safety StringUtils#getLevenshteinDistance reduce memory consumption Update Java requirement from Java 6 to 7. StringUtils should use toXxxxCase(int) rather than toXxxxCase(char) http://git-wip-us.apache.org/repos/asf/commons-lang/blob/ea666d52/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java index db3a99a..811c3b5 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java +++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java @@ -118,6 +118,7 @@ import org.apache.commons.lang3.StringUtils; * names, but it has to be enabled explicitly by setting the * {@link #setEnableSubstitutionInVariables(boolean) enableSubstitutionInVariables} * property to true. + *

This class is not thread safe.

* * @since 2.2 */