You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/04/11 13:37:05 UTC

[groovy] branch master updated: Unqualified call to 'yield' method might not be supported in future releases of Java

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

sunlan 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 ac0d7c1  Unqualified call to 'yield' method might not be supported in future releases of Java
ac0d7c1 is described below

commit ac0d7c183c15b700a94bf42ac9081473b2c60c6f
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Apr 11 21:36:40 2020 +0800

    Unqualified call to 'yield' method might not be supported in future releases of Java
---
 subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilder.java      | 2 +-
 .../groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilder.java b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilder.java
index cc219f8..b1138e0 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilder.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilder.java
@@ -316,7 +316,7 @@ public class MarkupBuilder extends BuilderSupport {
             }
         }
         if (value != null) {
-            yield(value.toString(), true);
+            this.yield(value.toString(), true);
         } else {
             nodeIsEmpty = true;
         }
diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
index bed8872..89c5abe 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/MarkupBuilderHelper.java
@@ -41,7 +41,7 @@ public class MarkupBuilderHelper {
      * @param value an Object whose toString() representation is to be printed
      */
     public void yield(Object value) {
-        yield(value.toString());
+        this.yield(value.toString());
     }
 
     /**