Skip to content
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

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

pivovarit
Copy link
Member

No description provided.

@pivovarit pivovarit marked this pull request as ready for review October 3, 2024 15:11
@pivovarit pivovarit enabled auto-merge (squash) October 3, 2024 15:11
@pivovarit pivovarit merged commit fdb6655 into version/0.x Oct 3, 2024
3 of 6 checks passed
@pivovarit pivovarit deleted the transient-function-cases branch October 3, 2024 15:13
@@ -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;
Copy link
Contributor

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;
Copy link
Contributor

@KrnSaurabh KrnSaurabh Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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;
Copy link
Contributor

@KrnSaurabh KrnSaurabh Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants