Skip to content

Commit

Permalink
Suppress Either serialization warnings (#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Oct 3, 2024
1 parent fdb6655 commit 4f8ee93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vavr/src/main/java/io/vavr/control/Either.java
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ final class Left<L, R> implements Either<L, R>, Serializable {

private static final long serialVersionUID = 1L;

@SuppressWarnings("serial") // Conditionally serializable
private final L value;

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

private static final long serialVersionUID = 1L;

@SuppressWarnings("serial") // Conditionally serializable
private final R value;

/**
Expand Down

0 comments on commit 4f8ee93

Please sign in to comment.