Skip to content

Commit fdb6655

Browse files
authored
Mark 'Case*' internal functions as 'transient' (#2873)
1 parent f186320 commit fdb6655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vavr/src-gen/main/java/io/vavr/API.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,7 +5123,7 @@ public static final class Case0<T, R> implements Case<T, R> {
51235123
private static final long serialVersionUID = 1L;
51245124

51255125
private final Pattern0<T> pattern;
5126-
private final Function<? super T, ? extends R> f;
5126+
private final transient Function<? super T, ? extends R> f;
51275127

51285128
private Case0(Pattern0<T> pattern, Function<? super T, ? extends R> f) {
51295129
this.pattern = pattern;
@@ -5146,7 +5146,7 @@ public static final class Case1<T, T1, R> implements Case<T, R> {
51465146
private static final long serialVersionUID = 1L;
51475147

51485148
private final Pattern1<T, T1> pattern;
5149-
private final Function<? super T1, ? extends R> f;
5149+
private final transient Function<? super T1, ? extends R> f;
51505150

51515151
private Case1(Pattern1<T, T1> pattern, Function<? super T1, ? extends R> f) {
51525152
this.pattern = pattern;
@@ -5169,7 +5169,7 @@ public static final class Case2<T, T1, T2, R> implements Case<T, R> {
51695169
private static final long serialVersionUID = 1L;
51705170

51715171
private final Pattern2<T, T1, T2> pattern;
5172-
private final BiFunction<? super T1, ? super T2, ? extends R> f;
5172+
private final transient BiFunction<? super T1, ? super T2, ? extends R> f;
51735173

51745174
private Case2(Pattern2<T, T1, T2> pattern, BiFunction<? super T1, ? super T2, ? extends R> f) {
51755175
this.pattern = pattern;
@@ -5654,4 +5654,4 @@ public boolean isDefinedAt(T obj) {
56545654
}
56555655
}
56565656
}
5657-
}
5657+
}

0 commit comments

Comments
 (0)