Marcono1234
f1f90313fc
Improve Maven build ( #1964 )
...
- Specify missing plugin versions
- Fix or suppress ProGuard notes and warnings
2021-09-17 17:19:50 -07:00
Éamonn McManus
c8f26dc907
Add missing calls when testing for exceptions. ( #1948 )
2021-08-31 15:03:45 -07:00
Éamonn McManus
1a2e58a42f
Remove an unused import. ( #1947 )
2021-08-31 14:55:07 -07:00
Simon Guerout
66fd2acdcf
Fix formatting
2021-08-30 09:57:08 -07:00
Simon Guerout
ac14b4c197
Make the nextJsonElement more robust
...
Add test cases
2021-08-30 09:57:08 -07:00
Simon Guerout
62a9702385
Improve the speed of the JSON_ELEMENT TypeAdapter when the object graph has already been turned into a JsonElement
2021-08-30 09:57:08 -07:00
Éamonn McManus
69173b02ea
Merge branch 'master' into optional-sql
2021-08-24 13:41:12 -07:00
Éamonn McManus
9edaeb3b2e
Merge pull request #1909 from HiFromAjay/aj
...
Test cases for testing the exceptional behavior of JsonArray get... methods
2021-08-07 07:54:12 -07:00
HiFromAjay
01ab13f701
Remove unused imports [ #1909 , #1908 ]
2021-08-05 17:23:28 -06:00
YOUNG HO CHA
d8c5fcf00b
Fix indentation of EnumWithObfuscatedTest
2021-08-04 12:30:07 +09:00
YOUNG HO CHA
59a8aedb37
Use SecurityManager to read enum fields
2021-08-04 12:24:55 +09:00
YOUNG HO CHA
20720d6a40
Remove unnecessary catch block
2021-08-04 12:03:28 +09:00
YOUNG HO CHA
6ac9f7d840
Suppress unchecked type cast warning
2021-08-04 12:03:21 +09:00
YOUNG HO CHA
92a98dab02
Removed unused import
2021-08-04 12:03:15 +09:00
YOUNG HO CHA
e99a4b1cb7
Move testcases-proguard.conf into gson/src/test/resources
2021-08-04 12:03:10 +09:00
YOUNG CHA
94f894cf44
Add testcase for obfuscated enum class
2021-08-04 12:02:50 +09:00
YOUNG CHA
68f99f2440
Make EnumTypeAdapter friendly with obfuscation
...
When enum value was obfuscated by proguard, EnumTypeAdapter raise NoSuchFieldException even if apply SerializedName annotation.
Because EnumTypeAdapter cannot find obfuscated enum constant field with its name.
2021-08-04 12:02:47 +09:00
Éamonn McManus
63e747f7f4
Merge pull request #1712 from rhernandez35/master
...
Fix fallback behavior of UnsafeReflectionAllocator when AccessibleObject isn't so accessible
2021-08-03 17:27:54 -07:00
Éamonn McManus
425cb25549
Adjust some minor details of #1391 .
...
Use two-space indentation for the new test.
Use standard Google import style.
Supply missing type argument for `TypeVariable`.
2021-08-02 17:33:10 -07:00
Éamonn McManus
d65960b001
Merge pull request #1391 from mcumings/issue1390
...
Fix issue with recursive type variable protections to fix #1390
2021-08-02 16:43:19 -07:00
HiFromAjay
2d1981d39b
modify test cases for testing the exceptional behavior of get... methods [use fail(...), use JsonArray methods, remove unused values, formatting, #1909 , #1908 ]
2021-06-14 14:31:14 -06:00
HiFromAjay
55115a5ca2
Test cases for testing the exceptional behavior of get, getAsBoolean, getAsDouble, getAsInt, getAsJsonArray, getAsJsonObject, getAsLong, and getAsString methods of JsonArray class. These test cases, which we wrote according to the specified behavior of each method, that helped us in identifying the documentation bugs in JsonArray and JsonElement classes, which we submitted issues for (Issue #1908 ). Note that we have adapted these test cases based on similar tests from the JSON-java project ( https://github.com/stleary/JSON-java ).
2021-06-11 10:04:32 -06:00
Éamonn McManus
1e4b84c34f
Merge pull request #1687 from Marcono1234/iso-utils-test-fix
...
Fix ISO8601UtilsTest failing on systems with UTC+X
2021-05-13 17:19:26 -07:00
Marcono1234
b1edb70486
Improve incorrect JsonStreamParser doc
2020-09-19 13:30:50 +02:00
Richard Hernandez
b39494dbe6
Fix fallback behavior of UnsafeReflectionAllocator when AccessibleObject isn't so accessible
2020-05-26 20:12:36 -07:00
Marcono1234
a4a235e14a
Remove redundant validation method
2020-05-24 23:54:32 +02:00
Marcono1234
4fb215c9df
Move SQL types specific tests to separate test class
2020-05-23 23:31:03 +02:00
Marcono1234
380c4ec12c
Make dependency on java.sql optional
2020-05-23 23:30:53 +02:00
Marcono1234
361292f1c1
Fix warnings
2020-05-09 17:34:53 +02:00
Marcono1234
541252a9fb
Implement DefaultDateTypeAdapter in a type safer way
2020-05-09 17:34:52 +02:00
Marcono1234
9171715a88
Fix ISO8601UtilsTest failing on systems with UTC+X
...
Previously ISO8601UtilsTest.testDateFormatString() would fail on systems
where the time zone is UTC+X because getTime() returned "2018-06-24" for them.
Additionally the tests which previously changed the system locale and time
zone have been rewritten to create a UTC calendar instead. Setting locale
seems to not be necessary because ISO8601Utils.parse(...) does not do that
either.
2020-05-03 00:35:47 +02:00
Matthew Lee
55acc23d86
Fixing https://github.com/google/gson/issues/1592 ( #1623 )
...
adding null parameter check to name(), fixing the issue and being consistent with superclass behavior
2020-03-02 14:57:42 -08:00
Gabriel Basilio Brito
fa947212e0
Add isEmpty method to JsonArray class ( #1640 )
...
The method will return true if the array is empty and false if it's not
2020-03-02 14:52:37 -08:00
Jiechuan Chen
4d735f1903
Add new testcases ( #1638 )
...
* Json Primitive Tests
* Json Tree Writer tests
* Add Tests for ISO8601Utils
* Add Tests for ISO8601Utils
2020-02-17 14:55:19 -08:00
Marcono1234
530cb74470
Fix javadoc doclint HTML warnings ( #1653 )
2020-02-17 14:46:15 -08:00
Degubi
9bf25c2eb6
Refactor prefix array & loop logic, use if-s instead ( #1505 )
2019-10-04 13:45:06 -07:00
Paul Kassianik
21fc362a7e
Fixed tests for java 11 ( #1454 )
2019-10-04 11:29:13 -07:00
Degubi
20dca860dd
Add docs to module-info.java ( #1535 )
2019-10-03 15:51:18 -07:00
Degubi
7845c38077
Minor cleanups in deprecations and other warnings ( #1522 )
2019-10-03 15:49:24 -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
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
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
Degubi
bac26b8e42
Optimize array copies
2019-03-05 12:12:04 -05:00