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 2018/01/18 02:56:59 UTC
groovy git commit: Remove temporary methods
Repository: groovy
Updated Branches:
refs/heads/native-lambda 1296d2f93 -> 82b08ffa5
Remove temporary methods
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/82b08ffa
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/82b08ffa
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/82b08ffa
Branch: refs/heads/native-lambda
Commit: 82b08ffa5914b35b8d7494d19860de359f6bd27d
Parents: 1296d2f
Author: sunlan <su...@apache.org>
Authored: Thu Jan 18 10:56:52 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Thu Jan 18 10:56:52 2018 +0800
----------------------------------------------------------------------
src/main/groovy/groovy/lang/Lambda.java | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/82b08ffa/src/main/groovy/groovy/lang/Lambda.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/groovy/lang/Lambda.java b/src/main/groovy/groovy/lang/Lambda.java
index 82953b0..159566c 100644
--- a/src/main/groovy/groovy/lang/Lambda.java
+++ b/src/main/groovy/groovy/lang/Lambda.java
@@ -31,22 +31,12 @@ public abstract class Lambda<V> extends Closure<V> {
}
/**
- * Constructor used when the "this" object for the Closure is null.
+ * Constructor used when the "this" object for the Lambda is null.
* This is rarely the case in normal Groovy usage.
*
- * @param owner the Closure owner
+ * @param owner the Lambda owner
*/
public Lambda(Object owner) {
super(owner);
}
-
- /**
- * Invokes the closure without any parameters, returning any value if applicable.
- *
- * @return the value if applicable or null if there is no return statement in the closure
- */
- @Override
- public V call() {
- return null;
- }
}