Remove User Guide links to non-existent Gson website#2861
Merged
eamonnmcmanus merged 1 commit intogoogle:mainfrom May 30, 2025
Merged
Remove User Guide links to non-existent Gson website#2861eamonnmcmanus merged 1 commit intogoogle:mainfrom
eamonnmcmanus merged 1 commit intogoogle:mainfrom
Conversation
Marcono1234
commented
May 29, 2025
| ### Streaming | ||
|
|
||
| In addition Gson's object model and data binding, you can use Gson to read from and write to a [stream](https://sites.google.com/site/gson/streaming). You can also combine streaming and object model access to get the best of both approaches. | ||
| In addition Gson's object model and data binding, you can use Gson to read from and write to a stream with the classes [`JsonReader`](https://javadoc.io/doc/com.google.code.gson/gson/latest/com.google.gson/com/google/gson/stream/JsonReader.html) and [`JsonWriter`](https://javadoc.io/doc/com.google.code.gson/gson/latest/com.google.gson/com/google/gson/stream/JsonWriter.html). These classes operate on a JSON document as a sequence of tokens that are traversed in depth-first order. Because the streams operate on one token at a time, they impose minimal memory overhead. |
Contributor
Author
There was a problem hiding this comment.
Text is partially taken from https://web.archive.org/web/20221102163655/https://sites.google.com/site/gson/streaming. In combination with the links to JsonReader and JsonWriter this should hopefully suffice because their Javadoc also has usage examples.
|
|
||
| For many more, see the internal class [`TypeAdapters`](gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java). | ||
|
|
||
| You can also find source code for some commonly used classes such as JodaTime at [this page](https://sites.google.com/site/gson/gson-type-adapters-for-common-classes-1). |
Contributor
Author
There was a problem hiding this comment.
Simply removed this because Joda-Time is probably not that widely used anymore since the same classes exist since Java 8 under java.time. And the linked page apparently only included code for two classes, see https://web.archive.org/web/20221102153855/https://sites.google.com/site/gson/gson-type-adapters-for-common-classes-1.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fixes #2860
Description
https://sites.google.com/site/gson does not seem to exist anymore, and was most likely pretty outdated before anyway.
This pull request removes all references to it, which only existed in the User Guide.