Give FieldNamingStrategy the ability to return multiple String names by mfriesen · Pull Request #2776 · google/gson (original) (raw)
[](/apps/github-advanced-security)
- Changed fieldName to be added first to the fieldName list
- test which verifies that when 'alternate names' are configured they don't affect serialization, and only affect deserialization
- Updated translateToAlternateNames JavaDoc to refer it works like SerializedName#alternate()
Check Android compatibility test fails when using Stream.concat, switched to traditional Java method.
- Renamed badname to primary-name
- Added test deserializing TranslateName with translateToAlternateNames
[](/apps/github-advanced-security)
Co-authored-by: Marcono1234 Marcono1234@users.noreply.github.com
…eAdapterFactory.java
Co-authored-by: Marcono1234 Marcono1234@users.noreply.github.com
….java
Co-authored-by: Marcono1234 Marcono1234@users.noreply.github.com
….java
Co-authored-by: Marcono1234 Marcono1234@users.noreply.github.com
….java
Co-authored-by: Marcono1234 Marcono1234@users.noreply.github.com
This was referenced
Apr 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})