groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 04/04: Mark `GeneratedClosure` and `GeneratedLambda` as `Internal`
Date Fri, 13 Dec 2019 06:04:53 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit b1e8725a15bacf0678484c9c636874f6f997a5c4
Author: Daniel.Sun <realbluesun@hotmail.com>
AuthorDate: Fri Dec 13 12:30:24 2019 +0800

    Mark `GeneratedClosure` and `GeneratedLambda` as `Internal`
---
 src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.java | 3 +++
 src/main/java/org/codehaus/groovy/runtime/GeneratedLambda.java  | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.java b/src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.java
index efcfb5e..9a4745a 100644
--- a/src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.java
+++ b/src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.java
@@ -18,6 +18,8 @@
  */
 package org.codehaus.groovy.runtime;
 
+import groovy.transform.Internal;
+
 /**
  * Marker interface to identify closures generated by the groovy compiler.
  * For internal use only!
@@ -25,4 +27,5 @@ package org.codehaus.groovy.runtime;
  * @since 1.5
  * @see org.codehaus.groovy.runtime.metaclass.ClosureMetaClass
  */
+@Internal
 public interface GeneratedClosure {}
diff --git a/src/main/java/org/codehaus/groovy/runtime/GeneratedLambda.java b/src/main/java/org/codehaus/groovy/runtime/GeneratedLambda.java
index 0a74b99..bf02016 100644
--- a/src/main/java/org/codehaus/groovy/runtime/GeneratedLambda.java
+++ b/src/main/java/org/codehaus/groovy/runtime/GeneratedLambda.java
@@ -19,10 +19,13 @@
 
 package org.codehaus.groovy.runtime;
 
+import groovy.transform.Internal;
+
 /**
  * Marker interface to identify lambda generated by the groovy compiler.
  * For internal use only!
  *
  * @since 3.0.0
  */
+@Internal
 public interface GeneratedLambda { }


Mime
View raw message