Skip to content

Commit 4f8ee93

Browse files
authored
Suppress Either serialization warnings (#2874)
1 parent fdb6655 commit 4f8ee93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vavr/src/main/java/io/vavr/control/Either.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ final class Left<L, R> implements Either<L, R>, Serializable {
10901090

10911091
private static final long serialVersionUID = 1L;
10921092

1093+
@SuppressWarnings("serial") // Conditionally serializable
10931094
private final L value;
10941095

10951096
/**
@@ -1153,6 +1154,7 @@ final class Right<L, R> implements Either<L, R>, Serializable {
11531154

11541155
private static final long serialVersionUID = 1L;
11551156

1157+
@SuppressWarnings("serial") // Conditionally serializable
11561158
private final R value;
11571159

11581160
/**

0 commit comments

Comments
 (0)