groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch GROOVY_3_0_X updated: Tweak tests for serializable lambda
Date Thu, 05 Dec 2019 07:23:58 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


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 4b1a0bd  Tweak tests for serializable lambda
4b1a0bd is described below

commit 4b1a0bd0ee257a831987ae1620ea6792ae901deb
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Thu Dec 5 15:20:13 2019 +0800

    Tweak tests for serializable lambda
    
    (cherry picked from commit 9023b3ea0715c8c0aa3c39769e6bc5b16d2735ee)
---
 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 27cfd37..4693e29 100644
--- a/src/test/groovy/transform/stc/LambdaTest.groovy
+++ b/src/test/groovy/transform/stc/LambdaTest.groovy
@@ -1083,8 +1083,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'
@@ -1146,8 +1145,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()
@@ -1349,8 +1347,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


Mime
View raw message