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

AutoValue support for very large classes. #1642

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link
Contributor

AutoValue support for very large classes.

This change makes it so that if the AutoValue class defines a Builder method, the builder will be passed to the constructor. Effectively working around the java 255 method-arg limit.

This is instead of defining a constructor where every field in the autovalue is an argument in it.

This change will only apply to autovalues that don't have extensions: in which case the constructor is private and we can be assured that updating it shouldn't be problematic for current cases.

RELNOTES=Support for AutoValues with +255 properties.

@copybara-service copybara-service bot force-pushed the test_main_582096324 branch 6 times, most recently from 668c2dc to b8f26b5 Compare November 21, 2023 06:41
This change makes it so that if the AutoValue class defines a Builder method, the builder will be passed to the constructor. Effectively working around the java 255 method-arg limit.

This is instead of defining a constructor where every field in the autovalue is an argument in it.

This change will only apply to autovalues that don't have extensions: in which case the constructor is private and we can be assured that updating it shouldn't be problematic for current cases.

RELNOTES=Support for AutoValues with +255 properties.
PiperOrigin-RevId: 582096324
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.

None yet

1 participant