Skip to content

Comments

bug fix, use package-private setter if not usingFromJsonShared#2927

Closed
XiaofeiCao wants to merge 3 commits intoAzure:mainfrom
XiaofeiCao:sss_fix_usefromjsonshared
Closed

bug fix, use package-private setter if not usingFromJsonShared#2927
XiaofeiCao wants to merge 3 commits intoAzure:mainfrom
XiaofeiCao:sss_fix_usefromjsonshared

Conversation

@XiaofeiCao
Copy link
Contributor

compilation error: https://github.com/Azure/azure-sdk-for-java/blob/970eed98c5b0054ab82b04beefbc24a3f695fb68/sdk/easm/azure-analytics-defender-easm/src/main/java/com/azure/analytics/defender/easm/models/AsAssetResource.java#L129

cause:
Child model has a required property, thus it doesn't use fromJsonShared. We should use package-private setters in fromJson, not through property reference.

@XiaofeiCao
Copy link
Contributor Author

Should already be fixed by #2928

@XiaofeiCao XiaofeiCao closed this Aug 28, 2024
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