Maicol
2c94c757a6
Formats codebase ( #2531 )
...
* Formats `.java` files
* Formats `.md` files
2023-11-06 11:59:01 -08:00
Marcono1234
88fd6d1390
Improve `JsonAdapter` documentation and tests ( #2442 )
...
* Document how `JsonAdapter` creates adapter instances & add tests
* Extend `JsonAdapter.nullSafe()` documentation
* Improve test for JsonAdapter factory returning null
Existing test `JsonAdapterNullSafeTest` had misleading comments; while it
did in the end detect if null had not been handled correctly, that only
worked because the field `JsonAdapterFactory.recursiveCall` is static and
one test method therefore affected the state of the other test method.
If the test methods were run separately in different test runs, they would
not have detected if null was handled correctly, because the factory would
not have returned null.
* Extend JsonAdapter nullSafe test
* Extend test
2023-08-23 07:09:32 -07:00
Marcono1234
e614e71ee4
Clarify in documentation that Gson might cache strategy results ( #2215 )
...
* Clarify in documentation that Gson might cache strategy results
* Improve wording; mention that adapter factory results are cached as well
2022-10-04 09:01:55 -07:00
Marcono1234
530cb74470
Fix javadoc doclint HTML warnings ( #1653 )
2020-02-17 14:46:15 -08:00
Kevin Most
5f73666404
Update JsonAdapter documentation ( #976 )
...
Include mention of JsonDeserializer and JsonSerializer.
2016-12-11 22:37:55 -08:00
testcenter
193349f4aa
made nullSafe wrapper of JsonAdapter optional
2016-06-28 09:18:03 +02:00
Jesse Wilson
6a3e83a741
Javadoc for TypeAdapterFactory in @JsonAdapter.
2014-08-05 15:00:15 +00:00
Jake Wharton
117d8ea68f
Add TypeAdapterFactory support to @JsonAdapter.
2014-08-04 16:58:41 +00:00
Jesse Wilson
125e6d9d3d
Change field annotations to take precedence over registered type adapters.
2014-08-02 18:22:43 +00:00
Inderjeet Singh
f9a302e22a
incorporated code review feedback. Added a test to ensure JsonAdapter validation doesn't carry side-effects to other fields
2014-08-01 02:16:42 +00:00
Jesse Wilson
a411a766f7
Leitch --> Wilson !
2014-05-23 05:43:39 +00:00
Inderjeet Singh
edf66083e6
renamed @Adapt to @JsonAdapter
2014-03-26 17:59:54 +00:00
Inderjeet Singh
7f6a096030
renamed JsonAdapter annotation to Adapt annotation.
2014-03-09 23:08:54 +00:00
Inderjeet Singh
0922af5be6
removed invalid imports
2014-03-09 08:23:05 +00:00
Inderjeet Singh
67af0dd8f8
Added javadoc comment in JsonAdapter explaining the usage for fields.
...
Added a (broken) test the ensure a field annotation for JsonAdapter supersedes a class annotation.
2014-03-09 08:21:06 +00:00
Inderjeet Singh
bf549f0589
Added support for JsonAdapter annotation on fields
2014-03-09 07:28:04 +00:00
Inderjeet Singh
67d512ee7d
Created a JsonAdapter annotation that can be applied to classes to indicate their TypeAdapter.
2014-03-08 22:37:19 +00:00