Commit Graph

1666 Commits

Author SHA1 Message Date
inder123
c188138842
restored Java 9 build (#1586) 2019-10-03 16:36:15 -07:00
Degubi
20dca860dd Add docs to module-info.java (#1535) 2019-10-03 15:51:18 -07:00
hqzxzwb
d6e6a01f02 Keep TypeAdapters from being stripped (#1546) 2019-10-03 15:50:21 -07:00
Degubi
7845c38077 Minor cleanups in deprecations and other warnings (#1522) 2019-10-03 15:49:24 -07:00
inder123
0e90771e45
Made the build work again with JDK 8 (#1585) 2019-10-03 15:08:39 -07:00
Prempal Singh
0409a2ecab Fix typo in UserGuide (#1572) 2019-09-18 10:39:14 -07:00
David Maplesden
3958b1f78d Prefer writing chars instead of strings of length one (#1576)
This results in a noticeable performance improvement with most writer
implementations (including BufferedWriter).
2019-09-18 10:33:49 -07:00
Inderjeet Singh
f885e602f1 Reverted the commit ce0fc4f34f 2019-09-11 13:34:52 -07:00
Inderjeet Singh
ce0fc4f34f Removed release tag in maven-compiler-plugin to enable release build with Java 8 2019-09-11 13:26:23 -07:00
William Collishaw
aa236ec38d Simplify BagOfPrimitives if statement (#1539)
* Simplify BagOfPrimitives if statement

* formatting
2019-06-04 11:03:45 -07:00
donaldchai
49d8630978 Update sample ProGuard config to mark fields instead of all members. (#1531)
GSON only needs to reflect based on fields:
4d942db168/gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java (L152)

There's no reason to disallow optimizing methods.
2019-05-08 23:23:54 -07:00
Marcono1234
f07fa51200 Change URLs from http to https (#1521)
* Change URLs from http to https

* Changed github.io to javadoc
2019-05-07 16:27:45 -07:00
Farid Forootan Shad
f426700bc4 update proguard to fix R8 compatibility issue (#1527)
https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#member-in-a-data-object-is-always
2019-05-07 15:18:59 -07:00
Degubi
63ee47cb64 Refactor uppercaseFirstLetter, add additional field to test (#1515) 2019-04-26 15:49:22 -07:00
Degubi
c5a3f21fba Refactor JsonParser to statics & fix tests 2019-04-15 22:35:10 -04:00
Degubi
477b3f77e1 Refactor primitives class 2019-04-15 11:08:31 -04:00
Jake Wharton
62f89ac929
Merge pull request #1512 from Degubi/jsonelement_removebooleanwrapper
Remove package private helpers in JsonElement & JsonPrimitive
2019-04-14 17:58:42 -04:00
Degubi
46d0f58d12 Remove unnecessary explicit else statement 2019-04-05 16:20:06 +02:00
Degubi
3ee3c150ed Remove boolean wrappers in JsonElement 2019-03-31 21:28:12 +02:00
Degubi
fc63a6af4c Make sql module dependency transitive (#1500) 2019-03-29 09:34:12 -07:00
Manuel Kollus
5370b076e3 Removing 'final' accessor from constructor (#1501) 2019-03-28 09:22:36 -07:00
Degubi
8bf2949c29 Remove object based constructors, remove some internal stuff 2019-03-11 10:53:31 -04:00
Jake Wharton
a817604a41 Add test coverage for passing null to JsonPrimitive constuctors 2019-03-11 10:50:22 -04:00
Tomy Jaya
ab0821c83e Fix wrong reference in Versioning Support example (#1482) 2019-03-07 00:26:22 -08:00
Degubi
bac26b8e42 Optimize array copies 2019-03-05 12:12:04 -05:00
Lorenz Nickel
3c6eea6b7d Adapt gson/gson/README to match with gson/README.md (#1472) 2019-03-03 11:28:00 -08:00
Lorenz Nickel
b75e1bbc79 Code cleanup (Removed spaces) (#1474)
* Removed double spaces in comments

* Unified comments

* Removed space

* Removed spaces in code
2019-03-03 11:18:06 -08:00
Márton Braun
4d942db168 Update Gson.java documentation to explicitly state behavior for empty strings (#1464) 2019-02-17 00:32:43 -08:00
Jake Wharton
da5cae371e
Merge pull request #1413 from jeremy-w/patch-1
Display null-handling details as sublist
2018-10-26 16:57:12 +01:00
Jeremy W. Sherman
aa1a34eb5e
Display null-handling details as sublist
Indent the details of null handling.

Comparing against the [old, Google Sites user guide][gsites] shows that the two items following the "handles nulls correctly" item are intended as a sublist under that item.

[gsites]: https://sites.google.com/site/gson/gson-user-guide#TOC-Finer-Points-with-Objects
2018-10-26 11:12:00 -04:00
Piet van Dongen
5bbc768fa6 Fix JPMS module setup (fixes #1315) (#1402)
* Fix JPMS module setup (fixes #1315)

* Re-added cause to AssertionErrors
2018-10-18 08:49:08 -07:00
Jake Wharton
27c9335275
Merge pull request #1400 from hmble/patch-1
Typo in JavaDoc example
2018-10-10 11:09:11 -04:00
hmble
b046ea28ee
Typo in JavaDoc example 2018-10-10 20:28:10 +05:30
Mike Cumings
69f7c4e243 Replace instance equality checks in $Gson$Types#resolve 2018-09-26 22:38:53 -07:00
Mike Cumings
e2296f42d5 Fix issue with recursive type variable protections to fix #1390
When a type variable is referenced multiple times it needs to resolve
to the same value.  Previously, the second attempt would abort
resolution early in order to protect against infinite recursion.
2018-09-25 16:09:48 -07:00
Jake Wharton
3f4ac29f91 Clean up the README a bit (#1376)
* Remove a lot of "Gson" as it's implied nearly everywhere.
* Remove broken Javadoc badge. Move other badges to be near the content to which they apply
* Not an official Google product
* Make download section more general. People other than Android developers use Gradle, for example.
2018-08-23 08:55:31 -07:00
Jake Wharton
ca9ae4c288
Merge pull request #1373 from knjk04/ImplementationDependency
Change 'compile' to 'implementation'
2018-08-21 17:39:51 -04:00
Karan Kumar
86ade21078 Change 'compile' to 'implementation' 2018-08-21 21:12:12 +01:00
Eric Cochran
92b6173791 Deprecate JsonElement.getAsCharacter 2018-07-30 13:44:21 -04:00
Eric Cochran
d8d8ccb98a Simplify maintainType logic
When we maintain the label value, we do not need to make a new JsonObject and copy over the keys and values when writing. The ordering will change, though. Before this change, it always put the label first.
2018-07-30 13:43:52 -04:00
lucalas
c1e7e2d280 Add possibility to maintain type variable in created pojo (#1342)
Instead of completely remove type variable, give the possibility to decide if maintain type value (if pojo has type variable declaration) or not.
2018-07-20 14:34:45 -07:00
Alexey Alexandrovich
67ff7d5198 add .gitattributes (#1350)
Use the linguist-documentation attribute to mark paths as documentation.
2018-07-20 14:18:18 -07:00
Christian Schwarz
9d44cbc19a Updated dependency examples to version 2.8.5 (#1330) 2018-06-06 18:14:47 -07:00
inder123
35c0ea7468
Changelog for Gson 2.8.5 2018-05-21 20:20:00 -07:00
inder123
5184e717ce
Updated User Guide for 2.8.5 2018-05-21 20:14:49 -07:00
Inderjeet Singh
986d3fb2fa [maven-release-plugin] prepare for next development iteration 2018-05-21 20:08:20 -07:00
Inderjeet Singh
f649e05141 [maven-release-plugin] prepare release gson-parent-2.8.5 2018-05-21 20:08:09 -07:00
joel-leitch
4c685b21a8 Private constructor (#1324)
* Adding private constructors on Util classes

* Remove obsolete step
2018-05-21 20:04:22 -07:00
inder123
d84e26d80c
Issue 1242: Printing Gson version when throwing AssertionError and IllegalArgumentException (#1321)
On some versions of Android (probably on some variants of the popular Samsung S4 phone), an older version of Gson is suspected to be bundled in, and gets picked up from the system classpath.
For those versions, the applications that include the latest Gson fail unexpectedly. This debug print will help confirm this issue.
2018-05-17 09:41:21 -07:00
Jake Wharton
1215841e46
Merge pull request #1281 from greatjack1/master
updated README to use implementation instead of compile
2018-05-16 09:39:32 -04:00