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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vavr/src-gen/main/java/io/vavr/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -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


private Case0(Pattern0<T> pattern, Function<? super T, ? extends R> f) {
this.pattern = pattern;
Expand All @@ -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.


private Case1(Pattern1<T, T1> pattern, Function<? super T1, ? extends R> f) {
this.pattern = pattern;
Expand All @@ -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.


private Case2(Pattern2<T, T1, T2> pattern, BiFunction<? super T1, ? super T2, ? extends R> f) {
this.pattern = pattern;
Expand Down Expand Up @@ -5654,4 +5654,4 @@ public boolean isDefinedAt(T obj) {
}
}
}
}
}
Loading