From ea666d523021a3c33294030e7c6ac49a77be543a Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Fri, 4 Nov 2016 18:32:39 +0100 Subject: [PATCH] LANG-1274: StrSubstitutor should state its thread safety (closes #207) Add paragraph to class javadoc stating that StrSubstitutor is not thread safe. --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ff056bb02..b2a886ffe 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) 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 db3a99a22..811c3b5c6 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 @@ * 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 */