Skip to content

Commit

Permalink
Suppress Tuple elements serialization warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit committed Oct 3, 2024
1 parent 3f37460 commit 6ea7e2b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 0 deletions.
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

0 comments on commit 6ea7e2b

Please sign in to comment.