Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/gson
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: gson-parent-2.13.0
Choose a base ref
...
head repository: google/gson
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gson-parent-2.13.1
Choose a head ref
  • 7 commits
  • 28 files changed
  • 5 contributors

Commits on Apr 11, 2025

  1. Configuration menu
    Copy the full SHA
    6010131 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2025

  1. Give FieldNamingStrategy the ability to return multiple String names (#…

    …2776)
    
    * Give FieldNamingStrategy the ability to return multiple String names
    
    * Fixed formatting violations
    
    * Code review changes
    
    - 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()
    
    * Removed usage of Stream.concat
    
    Check Android compatibility test fails when using Stream.concat, switched to traditional Java method.
    
    * Code Review Changes
    
    1. Renamed badname to primary-name
    2. Added test deserializing TranslateName with translateToAlternateNames
    
    * Fixed typo
    
    * added @SInCE $next-version$ to translateToAlternateNames method
    
    * Renamed translateToAlternateNames to alternateNames
    
    * Merged the code with and without the SerializedName annotation
    
    * Improved FieldNamingStrategy JavaDoc for the alternateNames method.
    
    * Added special handling for annotation without alternate names
    
    * Moved Collections.singletonList block to apply to both cases
    
    * Update gson/src/main/java/com/google/gson/FieldNamingStrategy.java
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Update gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Update gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Update gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Update gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    mfriesen and Marcono1234 authored Apr 13, 2025
    Configuration menu
    Copy the full SHA
    4e65e6a View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. Remove outdated android-proguard-example (#2843)

    * Remove outdated android-proguard-example
    
    * Apply suggestions from code review
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    
    * Fix typos and revert a review change
    
    * Correct the header to align with refs
    
    * Try out the ref id for ProGuard / R8 header
    
    * Revert "Try out the ref id for ProGuard / R8 header"
    
    This reverts commit e8f52fb.
    
    * Rearrange
    
    ---------
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    Goooler and Marcono1234 authored Apr 14, 2025
    Configuration menu
    Copy the full SHA
    0eec6f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00ae397 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2025

  1. Add shrinker test for interface implementation being deserialized (#2845

    )
    
    For R8 this currently fails, see TODOs in the new code.
    Marcono1234 authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    810e356 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2025

  1. Bump the maven group with 5 updates (#2851)

    Bumps the maven group with 5 updates:
    
    | Package | From | To |
    | --- | --- | --- |
    | [com.google.errorprone:error_prone_core](https://github.com/google/error-prone) | `2.37.0` | `2.38.0` |
    | [com.google.errorprone:error_prone_annotations](https://github.com/google/error-prone) | `2.37.0` | `2.38.0` |
    | [com.google.guava:guava-testlib](https://github.com/google/guava) | `33.4.7-jre` | `33.4.8-jre` |
    | [com.google.guava:guava](https://github.com/google/guava) | `33.4.7-jre` | `33.4.8-jre` |
    | [org.junit:junit-bom](https://github.com/junit-team/junit5) | `5.12.1` | `5.12.2` |
    
    
    Updates `com.google.errorprone:error_prone_core` from 2.37.0 to 2.38.0
    - [Release notes](https://github.com/google/error-prone/releases)
    - [Commits](google/error-prone@v2.37.0...v2.38.0)
    
    Updates `com.google.errorprone:error_prone_annotations` from 2.37.0 to 2.38.0
    - [Release notes](https://github.com/google/error-prone/releases)
    - [Commits](google/error-prone@v2.37.0...v2.38.0)
    
    Updates `com.google.guava:guava-testlib` from 33.4.7-jre to 33.4.8-jre
    - [Release notes](https://github.com/google/guava/releases)
    - [Commits](https://github.com/google/guava/commits)
    
    Updates `com.google.guava:guava` from 33.4.7-jre to 33.4.8-jre
    - [Release notes](https://github.com/google/guava/releases)
    - [Commits](https://github.com/google/guava/commits)
    
    Updates `org.junit:junit-bom` from 5.12.1 to 5.12.2
    - [Release notes](https://github.com/junit-team/junit5/releases)
    - [Commits](junit-team/junit-framework@r5.12.1...r5.12.2)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.errorprone:error_prone_core
      dependency-version: 2.38.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: maven
    - dependency-name: com.google.errorprone:error_prone_annotations
      dependency-version: 2.38.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: maven
    - dependency-name: com.google.guava:guava-testlib
      dependency-version: 33.4.8-jre
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: maven
    - dependency-name: com.google.guava:guava
      dependency-version: 33.4.8-jre
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: maven
    - dependency-name: org.junit:junit-bom
      dependency-version: 5.12.2
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: maven
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 18, 2025
    Configuration menu
    Copy the full SHA
    63d74b3 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2025

  1. 1 Configuration menu
    Copy the full SHA
    257bee9 View commit details
    Browse the repository at this point in the history
Loading