Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress Tuple elements serialization warning #2872

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vavr/generator/Generator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")}

Expand Down
1 change: 1 addition & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple1.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public final class Tuple1<T1> implements Tuple, Comparable<Tuple1<T1>>, Serializ
/**
* The 1st element of this tuple.
*/
@SuppressWarnings("serial") // Conditionally serializable
public final T1 _1;

/**
Expand Down
2 changes: 2 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple2.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ public final class Tuple2<T1, T2> implements Tuple, Comparable<Tuple2<T1, T2>>,
/**
* 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;

/**
Expand Down
3 changes: 3 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple3.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,19 @@ public final class Tuple3<T1, T2, T3> implements Tuple, Comparable<Tuple3<T1, T2
/**
* 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;

/**
Expand Down
4 changes: 4 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple4.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,25 @@ public final class Tuple4<T1, T2, T3, T4> implements Tuple, Comparable<Tuple4<T1
/**
* 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;

/**
Expand Down
5 changes: 5 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple5.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,31 @@ public final class Tuple5<T1, T2, T3, T4, T5> implements Tuple, Comparable<Tuple
/**
* 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;

/**
Expand Down
6 changes: 6 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple6.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,37 @@ public final class Tuple6<T1, T2, T3, T4, T5, T6> implements Tuple, Comparable<T
/**
* 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;

/**
Expand Down
7 changes: 7 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple7.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,43 @@ public final class Tuple7<T1, T2, T3, T4, T5, T6, T7> 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;

/**
Expand Down
8 changes: 8 additions & 0 deletions vavr/src-gen/main/java/io/vavr/Tuple8.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,41 +50,49 @@ public final class Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> 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;

/**
Expand Down
Loading