Skip to content

Conversation

Marcono1234
Copy link
Contributor

Instead manually throw exceptions, also with exception messages providing more context

Follow-up for #2878 (review)

Copy link
Member

@eamonnmcmanus eamonnmcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks! I like the improved exception messages a lot.

@eamonnmcmanus eamonnmcmanus merged commit 676b005 into google:main Jul 16, 2025
11 checks passed
@Marcono1234 Marcono1234 deleted the marcono1234/remove-GsonPreconditions branch July 16, 2025 23:12
mergify bot added a commit to ArcadeData/arcadedb that referenced this pull request Sep 14, 2025
…ip ci]

Bumps [com.google.code.gson:gson](https://github.com/google/gson) from 2.13.1 to 2.13.2.
Release notes

*Sourced from [com.google.code.gson:gson's releases](https://github.com/google/gson/releases).*

> Gson 2.13.2
> -----------
>
> The main changes in this release are just newer dependencies.
>
> What's Changed
> --------------
>
> * Improved packaging of JPMS module declaration in Gson jar  
>   This fixes an issue where Eclipse and VS Code users could not refer to the Gson module name `com.google.gson`. See issue [google/gson#2679](https://redirect.github.com/google/gson/issues/2679).
> * Remove internal class `GsonPreconditions` by [`@​Marcono1234`](https://github.com/Marcono1234) in [google/gson#2879](https://redirect.github.com/google/gson/pull/2879)
> * Switch to using central-publishing-maven-plugin by [`@​eamonnmcmanus`](https://github.com/eamonnmcmanus) in [google/gson#2900](https://redirect.github.com/google/gson/pull/2900)
>
> New Contributors
> ----------------
>
> * [`@​MukjepScarlet`](https://github.com/MukjepScarlet) made their first contribution in [google/gson#2852](https://redirect.github.com/google/gson/pull/2852)
> * [`@​ChrisCraik`](https://github.com/ChrisCraik) made their first contribution in [google/gson#2856](https://redirect.github.com/google/gson/pull/2856)
>
> **Full Changelog**: <google/gson@gson-parent-2.13.1...gson-parent-2.13.2>


Commits

* [`686fad7`](google/gson@686fad7) [maven-release-plugin] prepare release gson-parent-2.13.2
* [`c2d252a`](google/gson@c2d252a) Switch to using central-publishing-maven-plugin. ([#2900](https://redirect.github.com/google/gson/issues/2900))
* [`69cb755`](google/gson@69cb755) Bump the github-actions group with 5 updates ([#2894](https://redirect.github.com/google/gson/issues/2894))
* [`ea552c2`](google/gson@ea552c2) Bump the maven group across 1 directory with 3 updates ([#2898](https://redirect.github.com/google/gson/issues/2898))
* [`fdc616d`](google/gson@fdc616d) Set top-level permissions for CodeQL workflow ([#2889](https://redirect.github.com/google/gson/issues/2889))
* [`9334715`](google/gson@9334715) Create scorecard.yml ([#2888](https://redirect.github.com/google/gson/issues/2888))
* [`f7de5c2`](google/gson@f7de5c2) Bump the maven group with 8 updates ([#2885](https://redirect.github.com/google/gson/issues/2885))
* [`8c23cd3`](google/gson@8c23cd3) Update sources to satisfy a new Error Prone check. ([#2887](https://redirect.github.com/google/gson/issues/2887))
* [`5eab3ed`](google/gson@5eab3ed) Bump the github-actions group with 2 updates ([#2886](https://redirect.github.com/google/gson/issues/2886))
* [`5f5c200`](google/gson@5f5c200) Bump the maven group across 1 directory with 10 updates ([#2872](https://redirect.github.com/google/gson/issues/2872))
* Additional commits viewable in [compare view](google/gson@gson-parent-2.13.1...gson-parent-2.13.2)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=com.google.code.gson:gson&package-manager=maven&previous-version=2.13.1&new-version=2.13.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
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