Inderjeet Singh
1d9e86e27c
fixed extras build
2014-12-04 22:07:13 +00:00
Inderjeet Singh
33e74101e5
javadocs for 2.3.1
2014-11-20 10:17:53 +00:00
Inderjeet Singh
c3d17e39f1
[maven-release-plugin] prepare for next development iteration
2014-11-20 09:09:32 +00:00
Inderjeet Singh
eba6825a38
[maven-release-plugin] prepare release gson-2.3.1
2014-11-20 09:08:22 +00:00
Inderjeet Singh
8d5a41329e
added tests for Throwable. Revised ReflectiveTypeAdapterFactory to ignore self-referencing fields.
2014-11-16 22:55:18 +00:00
Inderjeet Singh
b6a625fb6c
fixed issue 469 by adding a TypeAdapterFactory for throwables that ignores cause if it is self-referencing
2014-11-16 22:25:23 +00:00
Inderjeet Singh
1de2ace065
removed eclipse warnings. updated maven plugins to the latest versions
2014-11-16 20:45:01 +00:00
Inderjeet Singh
84e3442eb0
Fixed issue 582
2014-11-12 23:35:36 +00:00
Inderjeet Singh
60b2370c74
added a test for RuntimeTypeAdapterFactory using JsonAdapter annotation
2014-11-11 22:04:20 +00:00
Inderjeet Singh
e652ec0dd9
revised a test to validate that we can query a delegate adapter from typeadapterfactorie registered in JsonAdapter
2014-11-11 02:02:56 +00:00
Jesse Wilson
d6c8c1e3cf
Fix bugs in getPath() with arrays of objects and arrays of arrays
2014-11-11 01:59:48 +00:00
Inderjeet Singh
f2591b6664
adjusted factory finding code to take into account non-present factories
2014-11-10 23:15:31 +00:00
Jake Wharton
7f8f490fdc
Re-order factories to allow @JsonAdapter on enums which are user-defined types.
2014-11-04 00:59:42 +00:00
Jesse Wilson
6580921f9d
Use a version range that works with Maven 3.0.4.
...
Fixes issue 588.
2014-09-16 14:40:54 +00:00
Jesse Wilson
ea17ccc651
Restore missing fails.
2014-08-12 21:06:56 +00:00
Inderjeet Singh
c6eced6d87
javadocs for 2.3
2014-08-12 00:01:30 +00:00
Inderjeet Singh
85e2d1901c
[maven-release-plugin] prepare for next development iteration
2014-08-11 23:35:34 +00:00
Inderjeet Singh
cf894f3d58
[maven-release-plugin] prepare release gson-2.3
2014-08-11 23:35:29 +00:00
Inderjeet Singh
192e32d430
updated maven pom for Java8
2014-08-11 23:33:42 +00:00
Jake Wharton
c5dc3b791b
Correct JsonElement javadoc exception references.
2014-08-09 06:14:12 +00:00
Jake Wharton
f4185289f6
Correct TypeAdapterFactory reference in its Javadoc.
2014-08-09 05:35:33 +00:00
Jake Wharton
f1f838cf20
Favor post-Gingerbread instantiation mechanism.
...
pre-Gingerbread is now a small subset of the Android OS distribution and is constantly shrinking toward zero.
2014-08-09 05:32:50 +00: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
fbc7e69c81
Implement JsonPath in JsonReader.
2014-07-31 05:17:54 +00:00
Inderjeet Singh
80bbf4a85a
revised JsonArray.set() method to return the JsonElement. (thanks Buchholz Bastian for catching that!)
2014-07-04 17:31:43 +00:00
Inderjeet Singh
b9578a4d7e
renamed JsonArray.has() to JsonArray.contains()
2014-07-04 02:03:34 +00:00
Inderjeet Singh
94e21eca21
renamed JsonArray.contains() to has() to be consistent with JsonObject.has()
2014-07-03 17:31:07 +00:00
Inderjeet Singh
06282a4d13
Fixed issue code.google.com/p/google-gson/issues/detail?id=353 by adding set method in JsonArray
2014-07-02 18:30:17 +00:00
Inderjeet Singh
9bbdcac5a8
Fixed issue code.google.com/p/google-gson/issues/detail?id=353 by adding remove and contains methods in JsonArray
2014-07-02 18:21:36 +00:00
Jesse Wilson
c6752fc47a
Fix inverted docs in ExclusionStrategy.
2014-06-04 04:30:19 +00:00
Jesse Wilson
a411a766f7
Leitch --> Wilson !
2014-05-23 05:43:39 +00:00
Inderjeet Singh
14ba59fa88
code review fixes. Moved getFirstArgument() method from $Gson$Types to GsonTypesTest.
2014-05-19 17:34:25 +00:00
Inderjeet Singh
b373c20136
Fixed issue 552 by documenting when fromJson returns null.
2014-03-29 23:28:52 +00:00
Inderjeet Singh
c53e255105
Fixed typo as mentioned in issue 565
2014-03-26 18:07:59 +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
6e8d3cd65e
Created threadsafe implementation of JsonAdapter invocation. Also fixed a bug where runtime generated typeadapters were being carried over from a toJson/fromJson call to the next.
2014-03-09 23:00:53 +00:00
Inderjeet Singh
e280ffd7e2
Fixed broken test to ensure that a field JsonAdapter annotation supersedes the class JsonAdapter annotation.
...
Added a map in Gson to keep track of TypeAdapters which are generated by Gson.
2014-03-09 08:36:24 +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
f88eee094c
removed some eclipse warnings
2014-03-09 07:33:08 +00:00
Inderjeet Singh
eaaa2a1b4f
added functional tests for applying JsonAdapter annotation on Fields.
2014-03-09 07:31:02 +00:00
Inderjeet Singh
b9998e511f
deleted support for the magic GSON_TYPE_ADAPTER field
2014-03-09 07:30:37 +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
Inderjeet Singh
7c97ac2944
Updated Gson version to 2.3-SNAPSHOT since this is a new feature.
...
Added support for a magic field GSON_TYPE_ADAPTER in a class. This adapter is automatically invoked if present.
The field must be present in the class (not in any super-type), and must be strongly typed as TypeAdapter<T>.
2014-03-08 20:08:13 +00:00
Inderjeet Singh
b2a9d872db
deleted redundant and invalid precondition.
2014-03-08 19:33:24 +00:00