This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c958f2  (doc) Fix compiler warnings in Java code example in Javadoc 
(#124)
5c958f2 is described below

commit 5c958f2e2d1d00528bef13a406cc1e42d7106d73
Author: Johan Hammar <johan.ham...@gmail.com>
AuthorDate: Thu Oct 10 19:28:59 2019 +0200

    (doc) Fix compiler warnings in Java code example in Javadoc (#124)
---
 src/main/java/org/apache/commons/text/StrSubstitutor.java    | 6 +++---
 src/main/java/org/apache/commons/text/StringSubstitutor.java | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/text/StrSubstitutor.java 
b/src/main/java/org/apache/commons/text/StrSubstitutor.java
index 63f0be1..e8bf4cd 100644
--- a/src/main/java/org/apache/commons/text/StrSubstitutor.java
+++ b/src/main/java/org/apache/commons/text/StrSubstitutor.java
@@ -49,7 +49,7 @@ import org.apache.commons.lang3.Validate;
  * text all variable references (as long as their values are known) will be 
resolved.
  * The following example demonstrates this:
  * <pre>
- * Map valuesMap = HashMap();
+ * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
  * valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
  * valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
  * String templateString = &quot;The ${animal} jumped over the 
${target}.&quot;;
@@ -69,7 +69,7 @@ import org.apache.commons.lang3.Validate;
  * {@link #setValueDelimiter(char)} or {@link #setValueDelimiter(String)}.
  * The following shows an example with variable default value settings:
  * <pre>
- * Map valuesMap = HashMap();
+ * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
  * valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
  * valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
  * String templateString = &quot;The ${animal} jumped over the ${target}. 
${undefined.number:-1234567890}.&quot;;
@@ -1217,7 +1217,7 @@ public class StrSubstitutor {
      * <b>true</b>, the values of variables can contain other variables will 
not be
      * processed and substituted original variable is evaluated, e.g.
      * <pre>
-     * Map valuesMap = HashMap();
+     * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
      * valuesMap.put(&quot;name&quot;, &quot;Douglas ${surname}&quot;);
      * valuesMap.put(&quot;surname&quot;, &quot;Crockford&quot;);
      * String templateString = &quot;Hi ${name}&quot;;
diff --git a/src/main/java/org/apache/commons/text/StringSubstitutor.java 
b/src/main/java/org/apache/commons/text/StringSubstitutor.java
index d20c950..e1f3ee9 100644
--- a/src/main/java/org/apache/commons/text/StringSubstitutor.java
+++ b/src/main/java/org/apache/commons/text/StringSubstitutor.java
@@ -57,7 +57,7 @@ import org.apache.commons.text.matcher.StringMatcherFactory;
  * </p>
  *
  * <pre>
- * Map valuesMap = HashMap();
+ * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
  * valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
  * valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
  * String templateString = &quot;The ${animal} jumped over the 
${target}.&quot;;
@@ -84,7 +84,7 @@ import org.apache.commons.text.matcher.StringMatcherFactory;
  * </p>
  *
  * <pre>
- * Map valuesMap = HashMap();
+ * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
  * valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
  * valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
  * String templateString = &quot;The ${animal} jumped over the ${target}. 
${undefined.number:-1234567890}.&quot;;
@@ -603,7 +603,7 @@ public class StringSubstitutor {
      * can contain other variables will not be processed and substituted 
original variable is evaluated, e.g.
      *
      * <pre>
-     * Map valuesMap = HashMap();
+     * Map&lt;String, String&gt; valuesMap = new HashMap&lt;&gt;();
      * valuesMap.put(&quot;name&quot;, &quot;Douglas ${surname}&quot;);
      * valuesMap.put(&quot;surname&quot;, &quot;Crockford&quot;);
      * String templateString = &quot;Hi ${name}&quot;;

Reply via email to