From 6ea7e2bca95e4e487fb9637245ec2992b139584d Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Tue, 1 Oct 2024 07:02:49 -0600 Subject: [PATCH] Suppress Tuple elements serialization warning --- vavr/generator/Generator.scala | 1 + vavr/src-gen/main/java/io/vavr/Tuple1.java | 1 + vavr/src-gen/main/java/io/vavr/Tuple2.java | 2 ++ vavr/src-gen/main/java/io/vavr/Tuple3.java | 3 +++ vavr/src-gen/main/java/io/vavr/Tuple4.java | 4 ++++ vavr/src-gen/main/java/io/vavr/Tuple5.java | 5 +++++ vavr/src-gen/main/java/io/vavr/Tuple6.java | 6 ++++++ vavr/src-gen/main/java/io/vavr/Tuple7.java | 7 +++++++ vavr/src-gen/main/java/io/vavr/Tuple8.java | 8 ++++++++ 9 files changed, 37 insertions(+) diff --git a/vavr/generator/Generator.scala b/vavr/generator/Generator.scala index e0468c23d..ea62db987 100644 --- a/vavr/generator/Generator.scala +++ b/vavr/generator/Generator.scala @@ -1953,6 +1953,7 @@ def generateMainClasses(): Unit = { /$javadoc * The ${j.ordinal} element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T$j _$j; """)("\n\n")} diff --git a/vavr/src-gen/main/java/io/vavr/Tuple1.java b/vavr/src-gen/main/java/io/vavr/Tuple1.java index 143d3e20e..c179bbcdb 100644 --- a/vavr/src-gen/main/java/io/vavr/Tuple1.java +++ b/vavr/src-gen/main/java/io/vavr/Tuple1.java @@ -43,6 +43,7 @@ public final class Tuple1 implements Tuple, Comparable>, Serializ /** * The 1st element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T1 _1; /** diff --git a/vavr/src-gen/main/java/io/vavr/Tuple2.java b/vavr/src-gen/main/java/io/vavr/Tuple2.java index 8cf9aeb97..766a8f85d 100644 --- a/vavr/src-gen/main/java/io/vavr/Tuple2.java +++ b/vavr/src-gen/main/java/io/vavr/Tuple2.java @@ -47,11 +47,13 @@ public final class Tuple2 implements Tuple, Comparable>, /** * The 1st element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T1 _1; /** * The 2nd element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T2 _2; /** diff --git a/vavr/src-gen/main/java/io/vavr/Tuple3.java b/vavr/src-gen/main/java/io/vavr/Tuple3.java index c98dd5e65..9f93f527b 100644 --- a/vavr/src-gen/main/java/io/vavr/Tuple3.java +++ b/vavr/src-gen/main/java/io/vavr/Tuple3.java @@ -45,16 +45,19 @@ public final class Tuple3 implements Tuple, Comparable implements Tuple, Comparable implements Tuple, Comparable implements Tuple, Comparable implements Tuple, Comparab /** * The 1st element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T1 _1; /** * The 2nd element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T2 _2; /** * The 3rd element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T3 _3; /** * The 4th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T4 _4; /** * The 5th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T5 _5; /** * The 6th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T6 _6; /** * The 7th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T7 _7; /** diff --git a/vavr/src-gen/main/java/io/vavr/Tuple8.java b/vavr/src-gen/main/java/io/vavr/Tuple8.java index 86df52849..65fd21475 100644 --- a/vavr/src-gen/main/java/io/vavr/Tuple8.java +++ b/vavr/src-gen/main/java/io/vavr/Tuple8.java @@ -50,41 +50,49 @@ public final class Tuple8 implements Tuple, Comp /** * The 1st element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T1 _1; /** * The 2nd element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T2 _2; /** * The 3rd element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T3 _3; /** * The 4th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T4 _4; /** * The 5th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T5 _5; /** * The 6th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T6 _6; /** * The 7th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T7 _7; /** * The 8th element of this tuple. */ + @SuppressWarnings("serial") // Conditionally serializable public final T8 _8; /**