You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/09/21 05:17:44 UTC

[groovy] branch master updated: remove javadoc warnings

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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fadf91  remove javadoc warnings
1fadf91 is described below

commit 1fadf91bf1463131bfb3b57dee14e8921b6ba63e
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Sep 21 15:08:31 2020 +1000

    remove javadoc warnings
---
 src/main/java/org/codehaus/groovy/ast/expr/ArrayExpression.java    | 2 +-
 src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/ast/expr/ArrayExpression.java b/src/main/java/org/codehaus/groovy/ast/expr/ArrayExpression.java
index 3051b3f..cc22993 100644
--- a/src/main/java/org/codehaus/groovy/ast/expr/ArrayExpression.java
+++ b/src/main/java/org/codehaus/groovy/ast/expr/ArrayExpression.java
@@ -30,7 +30,7 @@ import java.util.stream.Collectors;
  * One of:
  * <ul>
  *     <li>a fixed size array (e.g. {@code new String[3]} or {@code new Integer[2][3])}</li>
- *     <li>an array with an explicit initializer (e.g. {@code new String[]{ "foo", "bar" &#125;})</li>
+ *     <li>an array with an explicit initializer (e.g. {@code new String[]&#123; "foo", "bar" &#125;})</li>
  * </ul>
  */
 public class ArrayExpression extends Expression {
diff --git a/src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java b/src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java
index 9baf1f8..ed065f5 100644
--- a/src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java
+++ b/src/main/java/org/codehaus/groovy/runtime/StringGroovyMethods.java
@@ -689,8 +689,8 @@ public class StringGroovyMethods extends DefaultGroovyMethodsSupport {
      * import java.util.function.Function
      * import static java.util.Optional.*
      *
-     * Function<Character, Optional<String>> xform1 = s -> s == 'o' ? of('_O') : empty()
-     * Function<Character, Optional<String>> xform2 = { it == 'G' ? of('G_') : empty() }
+     * Function&lt;Character, Optional&lt;String&gt;&gt; xform1 = s -&gt; s == 'o' ? of('_O') : empty()
+     * Function&lt;Character, Optional&lt;String&gt;&gt; xform2 = { it == 'G' ? of('G_') : empty() }
      * assert "Groovy".collectReplacements([xform1, xform2]) == 'G_r_O_Ovy'
      * </pre>
      *