Marcono1234
4dda4ec5ba
Use diamond operator when creating generic instances ( #2104 )
2022-04-17 15:27:21 -07:00
Marcono1234
26a1928277
Fix RuntimeTypeAdapterFactory
depending on internal Streams
class ( #1959 )
...
* Fix RuntimeTypeAdapterFactory depending on internal Streams class
* Clean up gson-extras project, make it Maven module of gson-parent
* Remove broken test from GraphAdapterBuilderTest
2021-09-17 17:21:37 -07:00
Lyubomyr Shaydariv
47b28d99a1
The JavaDoc is now more accurate about the type adapter serialization and deserialization ( #1441 )
2019-10-28 16:11:15 -07:00
hmble
b046ea28ee
Typo in JavaDoc example
2018-10-10 20:28:10 +05:30
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
Stefan M
1c09b3f928
Fix well formed exception ( #1105 )
...
The previous exception was styled in the following way:
... ["DATE']...
This commit will fix the different quote marks and replace the " with '
2017-06-23 09:32:04 -07:00
Niv Singer
74e37110e5
Avoid NPE in PostConstructAdapterFactory ( #1103 )
...
* Avoid NPE in PostConstructAdapterFactory
The RawType's Superclass might be null. This happens, for example, when the type is a collection.
* Add test case for NPE in PostConstructAdapterFactory
* Improve the code quality of PostConstructAdapterFactoryTest
* Improve the code quality of PostConstructAdapterFactoryTest
* Improve the code quality of PostConstructAdapterFactoryTest
2017-06-19 18:04:19 -07:00
Inderjeet Singh
4512f31c69
Added PostConstruct Factory sample in Extras.
2016-09-16 17:35:34 -07:00
Juan Andrés Diana
86d88c32cf
The method registerTypeAdapterFactory accepts a TypeAdapterFactory instance only.
2016-05-25 15:49:39 -03:00
Juan Andrés Diana
d4a9eb4e7b
Docs fix for the RuntimeTypeAdapterFactory class.
...
Instances of classes that implement RuntimeTypeAdapterFactory should be registered using the registerTypeAdapterFactory method instead of registerTypeAdapter.
2016-05-24 16:45:55 -03:00
Egor N
edaf59e178
Fix RuntimeTypeAdapterFactory javadoc
2016-02-19 16:14:55 +02:00
Lachlan Coote
1867457030
fix #680 - make RuntimeTypeAdapterFactory null-safe
2015-08-05 16:27:18 -07:00
Inderjeet Singh
0c3b9670f0
Ensuring that UTC date adapter serializes nulls correctly
2014-12-05 22:12:54 +00:00
Inderjeet Singh
f0f9ce42f4
using only Jackson iso8601 implementation for UTC date adapter
2014-12-05 08:28:25 +00:00
Inderjeet Singh
0e3708be82
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util
2014-12-05 07:41:08 +00:00
Inderjeet Singh
255f2e2847
added a sample Date type adapter for UTC
2014-12-05 00:16:24 +00:00
Inderjeet Singh
7a5cef9305
Revised to the new name getDelegateAdapter.
2012-04-14 19:04:14 +00:00
Jesse Wilson
796a381279
Kill GsonInternalAccess. Clients to this were all broken because nobody was ever assigning INSTANCE.
2012-01-01 12:42:20 +00:00
Jesse Wilson
ecdf9150f6
Hide Gson.getNextAdapter() for the current release.
2011-12-31 05:30:40 +00:00
Jesse Wilson
4057b98bab
Implement all but the most difficult part of graph type adapter's deserialization. The catch is we want to return an instance that we don't have yet. It's on the stack, but we don't have a handle to it because it's inside the 'nextTypeAdapter' who is busy populating its fields.
2011-12-30 08:27:24 +00:00
Jesse Wilson
d7fbac0384
Rename TypeAdapter.Factory to TypeAdapterFactory.
2011-12-23 18:27:13 +00:00
Jesse Wilson
f602bce9f5
Nice documentation for TypeAdapter.
2011-12-03 19:46:25 +00:00
Jesse Wilson
26ab404599
Cleanup names for TypeAdapters.
2011-12-02 22:57:30 +00:00
Jesse Wilson
f39ac8d946
Update extras to build after today's Gson/MiniGson refactoring.
2011-11-21 05:09:14 +00:00
Jesse Wilson
b892c85909
Sync RuntimeTypeAdapterFactory to recent internal API changes
2011-10-19 17:49:02 +00:00
Jesse Wilson
46e65a77c5
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault()
2011-09-28 19:14:46 +00:00
Inderjeet Singh
62675b7f46
Added serializeDefault and deserializeDefault methods in contexts that only invoke system type adapters on the top-level object.
...
With this, the RuntimeTypeAdapterTest passes.
2011-07-01 21:29:20 +00:00
Jesse Wilson
9ad3358728
Document RuntimeTypeAdapter
2011-06-06 05:40:13 +00:00
Jesse Wilson
3d50a6b72a
New failing test for RuntimeTypeAdapters!
2011-05-27 18:47:31 +00:00
Jesse Wilson
d93825ba72
First draft of RuntimeTypeAdapters
2011-05-14 02:04:17 +00:00