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

Preserve declaration order for data object properties. #370

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

vietj
Copy link
Member

@vietj vietj commented Sep 15, 2023

The processor for data objects does not converse the natural order of the declarations provided by the annotation processor element. In order to allows users reason about protobuf generation where the order matters, we need this order to be preserved.

Update the DataObjectModel implementation to conserve the declaration order as provided by the annotation processor. This changes the existing behaviour that was sorting the elements using their name as sorting element.

@vietj vietj added this to the 5.0.0 milestone Sep 15, 2023
@vietj vietj self-assigned this Sep 15, 2023
… the declarations provided by the annotation processor element. In order to allows users reason about protobuf generation where the order matters, we need this order to be preserved.

Update the DataObjectModel implementation to conserve the declaration order as provided by the annotation processor. This changes the existing behavior that was sorting the elements using their name as sorting element.
@vietj vietj force-pushed the order-data-object-members branch from 332cd66 to 77c30e7 Compare September 15, 2023 13:00
@vietj vietj merged commit 643d1c2 into master Sep 15, 2023
4 checks passed
@vietj vietj deleted the order-data-object-members branch September 15, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant