-
-
Notifications
You must be signed in to change notification settings - Fork 637
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
Mark 'Case*' internal functions as 'transient' #2873
Conversation
@@ -5123,7 +5123,7 @@ public static final class Case0<T, R> implements Case<T, R> { | |||
private static final long serialVersionUID = 1L; | |||
|
|||
private final Pattern0<T> pattern; | |||
private final Function<? super T, ? extends R> f; | |||
private final transient Function<? super T, ? extends R> f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API is a generated class hence this change should be done in Generator class. I have taken care of this in my PR: https://github.com/vavr-io/vavr/pull/2880/files#diff-3b19b7314b0707a187940dc9e7f5bf8aa42e99ff0804aedae5e36eb9c764be3aR1107
@@ -5169,7 +5169,7 @@ public static final class Case2<T, T1, T2, R> implements Case<T, R> { | |||
private static final long serialVersionUID = 1L; | |||
|
|||
private final Pattern2<T, T1, T2> pattern; | |||
private final BiFunction<? super T1, ? super T2, ? extends R> f; | |||
private final transient BiFunction<? super T1, ? super T2, ? extends R> f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above comment: https://github.com/vavr-io/vavr/pull/2873/files#r1787356341
@@ -5146,7 +5146,7 @@ public static final class Case1<T, T1, R> implements Case<T, R> { | |||
private static final long serialVersionUID = 1L; | |||
|
|||
private final Pattern1<T, T1> pattern; | |||
private final Function<? super T1, ? extends R> f; | |||
private final transient Function<? super T1, ? extends R> f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above comment: https://github.com/vavr-io/vavr/pull/2873/files#r1787356341
No description provided.