You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/02/18 14:30:51 UTC
[lang] (doc) Use the full alphabet for the well-known example text.
Repository: commons-lang
Updated Branches:
refs/heads/master 1661e5519 -> 954ade4c1
(doc) Use the full alphabet for the well-known example text.
This change adds the missing `s` character.
Signed-off-by: Tobias Gesellchen <to...@gesellix.de>
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/954ade4c
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/954ade4c
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/954ade4c
Branch: refs/heads/master
Commit: 954ade4c1ae2adc0aaac3a1dbe800495c519520c
Parents: 1661e55
Author: Tobias Gesellchen <to...@gesellix.de>
Authored: Sat Feb 18 14:49:42 2017 +0100
Committer: Tobias Gesellchen <to...@gesellix.de>
Committed: Sat Feb 18 14:49:42 2017 +0100
----------------------------------------------------------------------
.../java/org/apache/commons/lang3/text/StrSubstitutor.java | 8 ++++----
src/test/java/org/apache/commons/lang3/StringUtilsTest.java | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/954ade4c/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 1a56620..051cb5d 100644
--- a/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
+++ b/src/main/java/org/apache/commons/lang3/text/StrSubstitutor.java
@@ -52,13 +52,13 @@ import org.apache.commons.lang3.StringUtils;
* Map valuesMap = HashMap();
* valuesMap.put("animal", "quick brown fox");
* valuesMap.put("target", "lazy dog");
- * String templateString = "The ${animal} jumped over the ${target}.";
+ * String templateString = "The ${animal} jumps over the ${target}.";
* StrSubstitutor sub = new StrSubstitutor(valuesMap);
* String resolvedString = sub.replace(templateString);
* </pre>
* yielding:
* <pre>
- * The quick brown fox jumped over the lazy dog.
+ * The quick brown fox jumps over the lazy dog.
* </pre>
* <p>
* Also, this class allows to set a default value for unresolved variables.
@@ -72,13 +72,13 @@ import org.apache.commons.lang3.StringUtils;
* Map valuesMap = HashMap();
* valuesMap.put("animal", "quick brown fox");
* valuesMap.put("target", "lazy dog");
- * String templateString = "The ${animal} jumped over the ${target}. ${undefined.number:-1234567890}.";
+ * String templateString = "The ${animal} jumps over the ${target}. ${undefined.number:-1234567890}.";
* StrSubstitutor sub = new StrSubstitutor(valuesMap);
* String resolvedString = sub.replace(templateString);
* </pre>
* yielding:
* <pre>
- * The quick brown fox jumped over the lazy dog. 1234567890.
+ * The quick brown fox jumps over the lazy dog. 1234567890.
* </pre>
* <p>
* In addition to this usage pattern there are some static convenience methods that
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/954ade4c/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
index af84f40..4c136ec 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
@@ -2940,7 +2940,7 @@ public class StringUtilsTest {
*/
@Test
public void testToString() throws UnsupportedEncodingException {
- final String expectedString = "The quick brown fox jumped over the lazy dog.";
+ final String expectedString = "The quick brown fox jumps over the lazy dog.";
byte[] expectedBytes = expectedString.getBytes(Charset.defaultCharset());
// sanity check start
assertArrayEquals(expectedBytes, expectedString.getBytes());
@@ -3087,7 +3087,7 @@ public class StringUtilsTest {
*/
@Test
public void testToEncodedString() {
- final String expectedString = "The quick brown fox jumped over the lazy dog.";
+ final String expectedString = "The quick brown fox jumps over the lazy dog.";
String encoding = SystemUtils.FILE_ENCODING;
byte[] expectedBytes = expectedString.getBytes(Charset.defaultCharset());
// sanity check start