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 2019/12/05 07:20:41 UTC
[groovy] branch master updated: Tweak tests for serializable lambda
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 9023b3e Tweak tests for serializable lambda
9023b3e is described below
commit 9023b3ea0715c8c0aa3c39769e6bc5b16d2735ee
Author: Daniel Sun <su...@apache.org>
AuthorDate: Thu Dec 5 15:20:13 2019 +0800
Tweak tests for serializable lambda
---
src/test/groovy/transform/stc/LambdaTest.groovy | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/test/groovy/transform/stc/LambdaTest.groovy b/src/test/groovy/transform/stc/LambdaTest.groovy
index 2cc88d3..4612741 100644
--- a/src/test/groovy/transform/stc/LambdaTest.groovy
+++ b/src/test/groovy/transform/stc/LambdaTest.groovy
@@ -1129,8 +1129,7 @@ class LambdaTest extends GroovyTestCase {
import java.util.function.Function
@groovy.transform.CompileStatic
- class Test1 implements Serializable {
- private static final long serialVersionUID = -1L;
+ class Test1 {
static byte[] p() {
def out = new ByteArrayOutputStream()
String c = 'a'
@@ -1192,8 +1191,7 @@ class LambdaTest extends GroovyTestCase {
import java.util.function.Function
@groovy.transform.CompileStatic
- class Test1 implements Serializable {
- private static final long serialVersionUID = -1L;
+ class Test1 {
private static final String c = 'a'
static byte[] p() {
def out = new ByteArrayOutputStream()
@@ -1395,8 +1393,7 @@ class LambdaTest extends GroovyTestCase {
interface SerializableFunction<T, R> extends Function<T, R>, Serializable {}
@groovy.transform.CompileStatic
- class Test1 implements Serializable {
- private static final long serialVersionUID = -1L;
+ class Test1 {
static p() {
def out1 = new ByteArrayOutputStream()
SerializableFunction<Integer, String> f1 = (Integer e) -> 'a' + e