Bug Introducing Change Report

Analyzed Repo: https://github.com/google/gson

Fix Commit (The Solution) Evidence (Lines Traced) Bug Introducing Commit (The Cause)
FIX 72d3702
Fix outdated version comment for `github/codeql-action` (#2916)
2025-10-04
Line 35 in .github/workflows/cifuzz.yml
Line 48 in .github/workflows/codeql-analysis.yml
Line 64 in .github/workflows/codeql-analysis.yml
Line 76 in .github/workflows/scorecard.yml
BUG START 69cb755
Bump the github-actions group with 5 updates (#2894) (Thu Sep 4 09:45:10 2025 -0700)
FIX 0c39897
Update `com.google.errorprone` and fix issues it flags. (#2874)
2025-07-05
Line 53 in gson/pom.xml
Line 255 in gson/src/test/java/com/google/gson/functional/CustomTypeAdaptersTest.java
Line 256 in gson/src/test/java/com/google/gson/functional/CustomTypeAdaptersTest.java
Line 539 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 1732 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
...and more
BUG START 49b00d1
Port all Junit assert to Truth asserts (#2304) (Tue Jan 31 20:20:54 2023 +0100)
BUG START 7b75efd
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem. (Sat Feb 11 20:15:39 2012 +0000)
BUG START 63d74b3
Bump the maven group with 5 updates (#2851) (Fri Apr 18 13:51:01 2025 -0700)
FIX 9a492d7
More Error Prone BooleanLiteral fixes. (#2873)
2025-07-05
Line 65 in gson/src/test/java/com/google/gson/OverrideCoreTypeAdaptersTest.java
Line 66 in gson/src/test/java/com/google/gson/OverrideCoreTypeAdaptersTest.java
Line 67 in gson/src/test/java/com/google/gson/OverrideCoreTypeAdaptersTest.java
Line 75 in gson/src/test/java/com/google/gson/OverrideCoreTypeAdaptersTest.java
Line 76 in gson/src/test/java/com/google/gson/OverrideCoreTypeAdaptersTest.java
BUG START be87c3f
Port Junit test to Truth in the package `com.google.gson` of the module `gson` (#2299) (Tue Jan 17 16:59:10 2023 +0100)
FIX ad5371e
Fix findings that are new with the latest Error Prone. (#2834)
2025-04-03
Line 53 in gson/pom.xml
Line 454 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 460 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 579 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 116 in gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java
...and more
BUG START 84e5f16
Bump the maven group with 7 updates (#2777) (Sun Dec 1 08:57:27 2024 -0800)
BUG START d391584
Register Gson 1.x tree-style adapters in the TypeAdapter.Factory list rather than in the ParameterizedTypeHandlerMap. (Sun Nov 20 19:55:01 2011 +0000)
BUG START 7ee5ad6
Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter` (#2435) (Wed Aug 23 02:15:18 2023 +0200)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
BUG START b3b9197
Change number parsing to use one big loop. This changes it to return JsonToken.STRING for very long (>8k digits) numbers. (Sun Sep 2 20:12:19 2012 +0000)
BUG START f29d5bc
Create a LinkedTreeMap based on the LinkedHashTreeMap; however, removed all the hashing from it as resorted to a single tree. The insertion order is still preserved. (Fri May 3 16:11:16 2013 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX 2549ba9
Fix ConstructorConstructor creating mismatching Collection and Map instances (#2068)
2025-03-19
Line 1107 in gson/src/main/java/com/google/gson/Gson.java
Line 1108 in gson/src/main/java/com/google/gson/Gson.java
Line 1199 in gson/src/main/java/com/google/gson/Gson.java
Line 1200 in gson/src/main/java/com/google/gson/Gson.java
Line 1361 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 5187808
Enable additional Error Prone checks & fix violations (#2561) (Tue Jan 9 19:19:09 2024 +0100)
BUG START 5bc80cd
Moved Cache, LruCache, Pair, Primitives and UnsafeAllocator to com.google.gson and made them package private. (Wed Mar 30 13:59:06 2011 +0000)
BUG START 2dc29f7
Replace anonymous class creation with lambdas in ConstructorConstructor (#2763) (Fri Oct 18 17:33:47 2024 +0300)
BUG START 0a42c31
Code cleanup (#2282) (Tue Dec 13 17:50:25 2022 +0100)
BUG START 6b9db2e
Add Gson.fromJson(..., TypeToken) overloads (#1700) (Mon Sep 19 15:47:11 2022 +0200)
BUG START 1a4f690
Regretfully enable serialization for StringMap and LazilyParsedNumber. (Wed Aug 15 14:58:26 2012 +0000)
BUG START 7ee5ad6
Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter` (#2435) (Wed Aug 23 02:15:18 2023 +0200)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
BUG START 14f16e2
Adding Red-Black Tree implementation and tying it into the Gson bindings. (Thu Oct 11 03:15:49 2012 +0000)
BUG START fef43b2
Added support to serialize/deserialize ConcurrentMap and ConcurrentNavigableMap. (Wed Nov 4 21:25:15 2015 -0800)
BUG START 6cca23c
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction. (Sun Jan 1 13:42:44 2012 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
BUG START e82637c
Add support for reflection access filter (#1905) (Sun Apr 17 18:05:18 2022 +0200)
FIX c395dd1
Fix `GraphAdapterBuilder#addType(Type)` delegating to previous creator (#2811)
2025-02-22
Line 79 in extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
Line 159 in extras/src/test/java/com/google/gson/graph/GraphAdapterBuilderTest.java
Line 162 in extras/src/test/java/com/google/gson/graph/GraphAdapterBuilderTest.java
BUG START 99cc4cb
Migrate all tests to Truth & use `assertThrows` (#2687) (Sat Jun 8 01:28:39 2024 +0200)
BUG START 87d30c0
Remove redundant generic type arguments from method calls (#2810) (Fri Feb 21 01:15:05 2025 +0100)
FIX 6422adf
Fix TODO and add proper documentation for GraphAdapterBuilder (#2800)
2025-02-02
Line 41 in extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
Line 42 in extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
BUG START 6cca23c
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction. (Sun Jan 1 13:42:44 2012 +0000)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
FIX 5ec834f
Update graalvm/setup-graalvm to 1.2.4, fixing workflow failure (#2764)
2024-10-16
Line 35 in .github/workflows/build.yml
BUG START eb43194
Bump the github-actions group with 4 updates (#2733) (Sun Sep 1 09:43:05 2024 -0700)
FIX 9471163
Fix some new Error Prone warnings. (#2753)
2024-10-08
Line 21 in gson/src/test/java/com/google/gson/functional/ReflectionAccessFilterTest.java
Line 84 in gson/src/test/java/com/google/gson/functional/ReflectionAccessFilterTest.java
Line 89 in gson/src/test/java/com/google/gson/functional/ReflectionAccessFilterTest.java
BUG START 9f26679
Adds Error Prone to the `maven-compiler-plugin` (#2308) (Mon Feb 6 15:13:28 2023 +0100)
BUG START 441406c
Add a currently-failing test for Java records and `@Ignore` it. (#2203) (Tue Sep 27 12:32:40 2022 -0700)
FIX 6160932
Fix a class loading deadlock involving `TypeAdapters`. (#2740)
2024-09-16
Line 29 in gson/src/main/java/com/google/gson/Gson.java
Line 31 in gson/src/main/java/com/google/gson/Gson.java
Line 328 in gson/src/main/java/com/google/gson/Gson.java
Line 391 in gson/src/main/java/com/google/gson/Gson.java
Line 24 in gson/src/main/java/com/google/gson/internal/Streams.java
...and more
BUG START 93596da
Move enum and `JsonElement` adapter classes to separate class files (#2727) (Sat Aug 17 17:09:12 2024 +0200)
BUG START 00028fb
Remove `AccessController` usage for enum adapter (#2704) (Wed Jun 19 01:02:29 2024 +0200)
FIX b7e268f
Fix the test properly. (#2720)
2024-07-26
Line 1769 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
BUG START 1039427
Add nesting limit for `JsonReader` (#2588) (Fri Jul 19 19:47:18 2024 +0200)
FIX e8cdabf
Fix typeArguments array not being cloned when resolving ParameterizedType with changed owner (#2706)
2024-06-27
Line 395 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 402 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 404 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 411 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
BUG START 883ce46
Second half of adopting Guice's types code. (Fri Dec 3 18:12:26 2010 +0000)
BUG START 69f7c4e
Replace instance equality checks in $Gson$Types#resolve (Wed Sep 26 22:38:53 2018 -0700)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
FIX 3b296cc
Fix API compatibility workflow failing when building previous version (#2694)
2024-06-01
Line 12 in .github/workflows/check-api-compatibility.yml
Line 29 in .github/workflows/check-api-compatibility.yml
Line 33 in .github/workflows/check-api-compatibility.yml
Line 480 in pom.xml
Line 483 in pom.xml
...and more
BUG START b777ae5
Disable Maven transfer progress for GitHub workflows (#2206) (Wed Sep 28 08:05:49 2022 +0200)
BUG START c2d0ced
Add GitHub workflow for checking API compatibility (#2182) (Sun Aug 28 19:51:31 2022 +0200)
FIX 749d22f
Fix a Yoda condition to placate Error Prone. (#2673)
2024-05-01
Line 1180 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
FIX 13be1d1
Fix `GsonBuilder.setDateFormat` ignoring partial DEFAULT; deprecate `setDateFormat(int)` (#2556)
2024-03-01
Line 235 in gson/src/main/java/com/google/gson/Gson.java
Line 69 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 586 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 587 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 594 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START b8f616c
Migrate DefaultDateTypeAdapter to streaming adapter (#1070) (Wed May 31 04:12:50 2017 +0300)
BUG START 4dda4ec
Use diamond operator when creating generic instances (#2104) (Mon Apr 18 00:27:21 2022 +0200)
BUG START 380c4ec
Make dependency on java.sql optional (Sat May 9 17:37:21 2020 +0200)
BUG START 6c12ded
Rewrite the `testParsingDatesFormattedWithSystemLocale()`, Fix #2199 (#2287) (Fri Dec 16 20:18:32 2022 +0100)
BUG START 49b00d1
Port all Junit assert to Truth asserts (#2304) (Tue Jan 31 20:20:54 2023 +0100)
BUG START 0aaf5ff
fix Java9 DateFormat changes (#1211) (Sat Dec 30 02:14:43 2017 +0700)
BUG START 5187808
Enable additional Error Prone checks & fix violations (#2561) (Tue Jan 9 19:19:09 2024 +0100)
BUG START 7a9fd59
Fixed DefaultDateTypeAdapter nullability issue and JSON primitives contract (#1100) (Mon Sep 18 09:49:13 2017 +0300)
BUG START d891661
Apply locale fix for date type adapter test. (Fri Dec 16 04:57:22 2011 +0000)
BUG START 1a2170b
Port tests from JUnit 3 to JUnit 4 (#2294) (Thu Dec 22 15:04:16 2022 +0100)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
BUG START 5055b62
Make date-formatting tests less fragile with regular expressions. (#2450) (Wed Jul 26 12:24:04 2023 -0700)
BUG START 541252a
Implement DefaultDateTypeAdapter in a type safer way (Wed Feb 12 19:25:56 2020 +0100)
BUG START 89c1845
Ensure date with pattern is not override with the "default" date type adapter when a custom JsonSerializer/JsonDeserializer is registered. (Wed Aug 18 23:58:52 2010 +0000)
BUG START 4da08b0
Remove two implementation classes that weren't generally useful: - The cache interface has only one implementation. Drop the interface; we can add it back later if necessary. - The DefaultTypeAdapters class contains one member class. Just make that a top-level class. (Mon Nov 21 06:23:42 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START 7f77ad4
Replace `$Gson$Preconditions.checkNotNull` with `Objects.requireNonNull` (#2180) (Mon Aug 22 16:22:32 2022 +0200)
BUG START 6684726
Validate `GsonBuilder.setDateFormat` style arguments & extend tests (#2545) (Sat Nov 18 23:09:25 2023 +0100)
FIX d148301
Fix compilation warnings & add test (#2614)
2024-02-10
Line 332 in gson/src/test/java/com/google/gson/JsonPrimitiveTest.java
Line 333 in gson/src/test/java/com/google/gson/JsonPrimitiveTest.java
Line 334 in gson/src/test/java/com/google/gson/JsonPrimitiveTest.java
BUG START db61bb0
Adds support to `BigDecimal` in `JsonPrimitive#equals` (#2364) (Fri Feb 9 17:38:42 2024 +0100)
FIX 11b2732
Fix $Gson$Types equals method for TypeVariable when its generic declaration is not a Class (#2599)
2024-01-30
Line 220 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
BUG START d1ddab2
Swap out GSON's type mechanics with the Type resolution code from Guice. (Fri Dec 3 08:07:13 2010 +0000)
FIX 5187808
Enable additional Error Prone checks & fix violations (#2561)
2024-01-09
Line 64 in extras/src/main/java/com/google/gson/typeadapters/PostConstructAdapterFactory.java
Line 66 in extras/src/main/java/com/google/gson/typeadapters/PostConstructAdapterFactory.java
Line 33 in extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java
Line 174 in extras/src/test/java/com/google/gson/interceptors/InterceptorTest.java
Line 195 in extras/src/test/java/com/google/gson/interceptors/InterceptorTest.java
...and more
BUG START bb7f0b6
Adopt JsonElementWriter in GSON. Add setSerializeNulls() to JsonWriter, so nulls can be skipped from serialization. This does not yet impact JsonElementWriter. (Fri Sep 30 07:08:44 2011 +0000)
BUG START c7c645d
Formatting follow-up (#2540) (Wed Nov 15 00:09:54 2023 +0100)
BUG START b4dab86
Make default adapters stricter; improve exception messages (#2000) (Mon Nov 1 23:08:04 2021 +0100)
BUG START 19f54ee
Fixes #776: Add settings for the kind of newline to use (#2231) (Sun Feb 12 08:20:02 2023 -0800)
BUG START 1c5f513
Revert most of r677: Required strings to be quoted even in lenient mode. As far as Inderjeet and I can tell, this is consistent with Gson 1.5. (Wed Nov 24 23:22:13 2010 +0000)
BUG START fd4fbe4
Added support for collections, maps, and arbitrary depth of type adapters for Intercept annotation. Added more tests for the features. (Thu Oct 18 02:37:43 2012 +0000)
BUG START f0aa111
Java protobuf uses lower camel for all field names. When using reflection to find the generic type of repeated fields, can't use the user specified formats for field name conversion. (#1119) (Mon Sep 18 02:46:52 2017 -0400)
BUG START 852cd72
Don't allocate a whole bunch of objects each time we deserialize a map key. This saves 20% on bug 375's benchmark. (Sat Nov 26 15:36:08 2011 +0000)
BUG START 3e7ebf8
Fixed issue 156. Added support for serializing an object field (or array elements) as per its actual type. Refactored inheritance related tests into its own test class. Added regression tests for issue 156. (Fri Sep 25 19:54:25 2009 +0000)
BUG START 6feb325
Added a type adapter for serializing and deserializing protobufs (Wed Oct 27 23:06:26 2010 +0000)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
BUG START e81f3eb
Expose newJsonWriter wrapper instead of just options. (Sat Sep 26 19:19:38 2015 -0400)
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START b44bbbf
Added an API method to create a tree of JsonElement from an object. (Fri Apr 3 21:33:01 2009 +0000)
BUG START 3ff16c3
Don't use a runtime wrapper if a JsonAdapter annotation is present on a field. (Tue May 17 13:30:59 2016 -0700)
BUG START 3958b1f
Prefer writing chars instead of strings of length one (#1576) (Thu Sep 19 05:33:49 2019 +1200)
BUG START b3188c1
Fix `FieldNamingPolicy.upperCaseFirstLetter` uppercasing non-letter (#2004) (Mon Nov 1 23:05:04 2021 +0100)
BUG START fbc7e69
Implement JsonPath in JsonReader. (Thu Jul 31 05:17:54 2014 +0000)
BUG START 339c783
Updated the ProtoTypeAdapter to a version that works smoothly and supports field name/value customization. - Lets you customize the proto field name serialization per field - Lets you use different cases for serialization (e.g. you could use UpperCamelCase for your proto field names and willing to serialize them using LowerHyphen) - Lets you choose to serialize enum values with their value (0, 1, 2, ...) instead of their name. (Tue Oct 6 16:20:37 2015 -0700)
BUG START 5acaee4
Check in our best Jackson vs. Gson comparison benchmarks. http://microbenchmarks.appspot.com/run/limpbizkit@gmail.com/com.google.gson.metrics.ParseBenchmark (Thu Dec 15 07:03:01 2011 +0000)
BUG START aa5554e
Don't exclude static local classes (#1969) (Sat Sep 18 03:12:47 2021 +0200)
BUG START 4154378
Include line and column position in error messages. (Mon Jul 18 19:26:02 2011 +0000)
BUG START b3dce2d
Strict mode for JSON parsing, contributed by @marten-voorberg. (#2437) (Sun Jul 30 09:20:32 2023 -0700)
BUG START dc28951
Change target Java version to 7 (#2043) (Fri Dec 31 16:20:29 2021 +0100)
BUG START 46b7363
Fix a bug where we weren't reading enough characters when a BOM was encountered. (Tue Aug 28 01:48:25 2012 +0000)
BUG START f72824e
Improve documentation about default `JsonReader` and `JsonWriter` behavior (#2341) (Sat Aug 5 20:29:27 2023 +0200)
BUG START 1a2170b
Port tests from JUnit 3 to JUnit 4 (#2294) (Thu Dec 22 15:04:16 2022 +0100)
BUG START e2e851c
Add LazilyParsedNumber default adapter (#2060) (Fri Jan 28 20:26:28 2022 +0100)
BUG START 0b6a7bf
Deprecate JsonElement constructor (#1761) (Thu Aug 4 19:32:30 2022 +0200)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START d26c818
New streaming writer writes to DOMs (Fri Sep 30 06:26:46 2011 +0000)
BUG START 0109f45
issue#2436: Throw exception when registering adapter for Object or JsonElement (#2479) (Tue Oct 3 09:29:54 2023 -0500)
BUG START 6684726
Validate `GsonBuilder.setDateFormat` style arguments & extend tests (#2545) (Sat Nov 18 23:09:25 2023 +0100)
BUG START 6e2fcdc
Use Message instead of GeneratedMessage which is specific to protobuf v2. Message is a common superclass of both GeneratedMessage and GeneratedMessageV3. Also throw an exception to notify caller that DynamicMessage is not supprorted. (#1191) (Mon Nov 27 21:13:39 2017 -0500)
BUG START 714ac8e
added tests for using intercept in fields and lists. These tests are currently failing. (Thu Oct 11 20:29:40 2012 +0000)
BUG START c8627c8
Update reader and writer for RFC 7159. (Mon Jan 18 15:07:33 2016 -0500)
BUG START 4dda4ec
Use diamond operator when creating generic instances (#2104) (Mon Apr 18 00:27:21 2022 +0200)
BUG START b3b9197
Change number parsing to use one big loop. This changes it to return JsonToken.STRING for very long (>8k digits) numbers. (Sun Sep 2 20:12:19 2012 +0000)
BUG START aa2f61b
Rename GsonExclusionStrategy to Excluder. The new class is its own factory, which simplifies its caller in GsonBuilder. It no longer implements ExclusionStrategy, which allows the callers to pass in a boolean for serialize/deserialize. This allows us to use one excluder for both code paths. The delegate ExclusionStrategy instances might end up not being shared so it has two lists internally. (Tue Nov 22 07:37:13 2011 +0000)
BUG START 26be941
Throw UnsupportedOperationException when JsonWriter.jsonValue is not supported (#1651) (Sun Aug 21 17:49:32 2022 +0200)
BUG START cbc0af8
Improve lenient mode documentation (#2122) (Tue Jun 28 18:48:05 2022 +0200)
BUG START bf549f0
Added support for JsonAdapter annotation on fields (Sun Mar 9 07:28:04 2014 +0000)
BUG START 49b00d1
Port all Junit assert to Truth asserts (#2304) (Tue Jan 31 20:20:54 2023 +0100)
BUG START 6b96a38
Put `module-info.class` into Multi-Release JAR folder (#2013) (Sat Jan 1 21:44:39 2022 +0100)
BUG START 2860908
Add Javadoc since tags for previously added elements (#2211) (Sun Oct 2 00:58:26 2022 +0200)
BUG START 3360c93
Add setting for leniency on Gson instance. (Sun Jan 17 03:03:04 2016 -0500)
BUG START 7ee5ad6
Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter` (#2435) (Wed Aug 23 02:15:18 2023 +0200)
BUG START f89e92a
Tighten up some of the fields naming policy code. The main thrust of this change is replacing classes like UpperCaseNamingPolicy with the corresponding method calls. Classes like CompositeFieldNamingPolicy are replaced by sequences of method calls. This also replaces unit tests with functional tests. (Mon Nov 21 05:08:23 2011 +0000)
BUG START c2a0e46
Updates the line separator from `CRLF` to `LF` (#2536) (Fri Nov 10 21:36:42 2023 +0100)
BUG START eb2230c
Fix nullSafe() to not infinitely recurse on non-null input. (Tue Dec 6 15:35:52 2011 +0000)
BUG START deaa3a6
Fix `Gson.newJsonWriter` ignoring lenient and HTML-safe setting (#1989) (Mon Nov 1 23:11:10 2021 +0100)
BUG START 7e76014
Smash together MiniGson and Gson. This changes Gson to be the MiniGson rather than delegating to the MiniGson. It means that the MiniGson objects passed into streaming type adapters are now fully-capable 'Gson' objects. (Sun Nov 20 15:23:08 2011 +0000)
BUG START f9a302e
incorporated code review feedback. Added a test to ensure JsonAdapter validation doesn't carry side-effects to other fields (Fri Aug 1 02:16:42 2014 +0000)
BUG START 91be944
Added a new API method nullSafe() in TypeAdapter that can be used to avoid boilerplate handling of nulls in a type adapter. (Mon Dec 5 19:50:49 2011 +0000)
BUG START 477b3f7
Refactor primitives class (Sun Mar 24 23:20:25 2019 +0100)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 2928b3e
handle explicit null values in JSON (Mon May 23 16:44:30 2016 -0300)
BUG START 0b734e4
Incorporated code review comments from r1061. Made nullSafe() an instance method instead of a static method. Updated code javadoc to match Guava style. (Tue Dec 6 08:18:00 2011 +0000)
BUG START 4fb215c
Move SQL types specific tests to separate test class (Sat May 23 22:50:14 2020 +0200)
BUG START b395da2
Better javadoc (Tue Oct 6 16:57:13 2015 -0700)
BUG START b28e518
Hide toJson/fromJson APIs for the 2.1 release. (Wed Dec 21 21:30:18 2011 +0000)
BUG START 8daf3aa
Inline position computation. This is uglier but faster. (Tue Aug 28 03:52:18 2012 +0000)
BUG START 0aaf5ff
fix Java9 DateFormat changes (#1211) (Sat Dec 30 02:14:43 2017 +0700)
BUG START c744ccd
avoid repeated calls to build() during deserialization by obtaining field types from the Message's defaultInstance (#1215) (Wed Dec 27 22:14:16 2017 -0500)
BUG START b96d2d9
Support non-execute prefixes. (Sun Aug 26 19:31:06 2012 +0000)
BUG START 3cbe355
Test precedence of type hierarchy adapters. (Wed Nov 23 05:13:17 2011 +0000)
BUG START dc20b75
Fix error prone warns (#2320) (Wed Mar 1 23:23:27 2023 +0100)
BUG START d84e26d
Issue 1242: Printing Gson version when throwing AssertionError and IllegalArgumentException (#1321) (Thu May 17 09:41:21 2018 -0700)
BUG START a0afec7
Test case to demonstrate no such crash as reported in issue 408. (Sat Feb 11 18:19:54 2012 +0000)
BUG START fff9147
Added some tests to measure serialization and deserialization performance of Gson based on the discussion in http://groups.google.com/group/google-gson/browse_thread/thread/7a50b17a390dfaeb Surprising just marking a field as exposed halves the performance. (Tue Oct 20 00:04:34 2009 +0000)
BUG START f29d5bc
Create a LinkedTreeMap based on the LinkedHashTreeMap; however, removed all the hashing from it as resorted to a single tree. The insertion order is still preserved. (Fri May 3 16:11:16 2013 +0000)
BUG START c414b36
Corrected documentation, copy&paste error (Thu May 12 14:47:03 2016 +0200)
BUG START 747e3c3
Support mixed streaming and databinding with new APIs. (Thu Sep 2 00:15:23 2010 +0000)
BUG START a147164
incorporated feedback on r721 (Mon Apr 4 21:43:24 2011 +0000)
BUG START e4c3b65
Fix non-threadsafe creation of adapter for type with cyclic dependency (#1832) (Mon Dec 5 18:10:36 2022 +0100)
BUG START c1da2d7
Add `@CanIgnoreReturnValue` as appropriate to Gson methods. (#2369) (Mon Apr 10 10:50:25 2023 -0700)
BUG START 0e3708b
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util (Fri Dec 5 07:41:08 2014 +0000)
BUG START 1a4f690
Regretfully enable serialization for StringMap and LazilyParsedNumber. (Wed Aug 15 14:58:26 2012 +0000)
BUG START f7abd59
JsonWriter#jsonValue writes raw JSON values. (Sun Jul 19 12:46:26 2015 -0700)
BUG START e82637c
Add support for reflection access filter (#1905) (Sun Apr 17 18:05:18 2022 +0200)
BUG START 8965d31
made DEBUG final per the naming conventions. (Mon Mar 30 19:55:05 2009 +0000)
FIX 58d1a9f
Fix DateFormat time zone is not restored and add Test. (#2549)
2023-12-05
Line 62 in gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java
Line 63 in gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java
Line 64 in gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java
Line 65 in gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java
Line 67 in gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java
...and more
BUG START b4dab86
Make default adapters stricter; improve exception messages (#2000) (Mon Nov 1 23:08:04 2021 +0100)
BUG START 3f26144
Fix date adapters to work when run in any time zone. (Wed Sep 28 17:56:54 2011 +0000)
BUG START 3b3a60d
Use new instances of DateTypeAdapter and TimeTypeAdapter for each GSON; this guarantees that the TimeZone and Locale are what they should be (Mon Sep 26 21:44:08 2011 +0000)
BUG START 2c94c75
Formats codebase (#2531) (Mon Nov 6 20:59:01 2023 +0100)
FIX e93fda9
Fix typos and improve Gson Design Document formatting (#2491)
2023-09-21
Line 3 in GsonDesignDocument.md
Line 5 in GsonDesignDocument.md
Line 7 in GsonDesignDocument.md
Line 9 in GsonDesignDocument.md
Line 11 in GsonDesignDocument.md
...and more
BUG START f2f53fb
Add troubleshooting guide (#2285) (Thu Dec 15 17:27:16 2022 +0100)
BUG START 5e52242
Imported Gson design document from (Tue Nov 24 17:49:04 2015 -0800)
BUG START b3dce2d
Strict mode for JSON parsing, contributed by @marten-voorberg. (#2437) (Sun Jul 30 09:20:32 2023 -0700)
BUG START 796193d
Improve versioning support documentation and validate version (#2214) (Mon Oct 3 01:38:43 2022 +0200)
BUG START 3f1d4fb
Document Map serialization in user guide (#2138) (Mon Jun 27 23:59:43 2022 +0200)
BUG START b4ca41a
Docs fixes: markdown, links, formatting. (Fri Nov 27 16:56:59 2015 -0500)
BUG START 5acaee4
Check in our best Jackson vs. Gson comparison benchmarks. http://microbenchmarks.appspot.com/run/limpbizkit@gmail.com/com.google.gson.metrics.ParseBenchmark (Thu Dec 15 07:03:01 2011 +0000)
BUG START b96d2d9
Support non-execute prefixes. (Sun Aug 26 19:31:06 2012 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
BUG START d391584
Register Gson 1.x tree-style adapters in the TypeAdapter.Factory list rather than in the ParameterizedTypeHandlerMap. (Sun Nov 20 19:55:01 2011 +0000)
BUG START 49b00d1
Port all Junit assert to Truth asserts (#2304) (Tue Jan 31 20:20:54 2023 +0100)
BUG START 7ee5ad6
Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter` (#2435) (Wed Aug 23 02:15:18 2023 +0200)
BUG START 282ef30
Updating JavaDoc tag to @code instead of @link. (Fri Oct 9 03:03:04 2009 +0000)
BUG START e3af076
Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. (Sat Jan 9 22:43:27 2010 +0000)
BUG START 57ea7ff
Restored this behavior for serialization: (as verified in CustomSerializerTest) First preference: a type adapter registered for the runtime type Second preference: a type adapter registered for the declared type Third preference: reflective type adapter for the runtime type (if it is a sub class of the declared type) Fourth preference: reflective type adapter for the declared type (Fri Aug 12 02:18:02 2011 +0000)
BUG START 83e5a49
Renamed Gson.getNextAdapter to getDelegateAdapter. Deleted testParameterizedMapSubclassDeserialization which we decided to not fix. Added simple tests for getDelegateAdapter (Thu Apr 12 18:49:27 2012 +0000)
FIX 7ee5ad6
Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter` (#2435)
2023-08-23
Line 607 in gson/src/main/java/com/google/gson/Gson.java
Line 608 in gson/src/main/java/com/google/gson/Gson.java
Line 609 in gson/src/main/java/com/google/gson/Gson.java
Line 610 in gson/src/main/java/com/google/gson/Gson.java
Line 611 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START edf6608
renamed @Adapt to @JsonAdapter (Wed Mar 26 17:59:54 2014 +0000)
BUG START f7a164d
Fail Maven build on compiler warnings; remove some warning suppressions (#2183) (Sat Aug 27 02:36:18 2022 +0200)
BUG START 7f8f490
Re-order factories to allow @JsonAdapter on enums which are user-defined types. (Tue Nov 4 00:59:42 2014 +0000)
BUG START 2df6550
Don't use ThreadLocals for @JsonAdapter factories and getDelegateAdapter(). (Thu Jun 2 00:18:03 2016 -0400)
BUG START 9c4f352
minor javadoc fix ... @code block not treated as html (Fri Apr 8 19:34:05 2016 -0600)
BUG START b75e1bb
Code cleanup (Removed spaces) (#1474) (Sun Mar 3 20:18:06 2019 +0100)
BUG START 7a1c94f
Remove synthetic accessors from being generated. (Sun Dec 27 01:39:19 2015 -0500)
BUG START 45511fd
Added support for JsonSerializer/JsonDeserializer for JsonAdapter annotation. JsonAdapter is cached per the type of the JsonAdapter class. Added a test to ensure JsonAdapter works on fields of parameterized types Keep track of registered JsonAdapters and JsonAdapterFactorys in ThreadLocal. (Wed May 18 18:21:39 2016 -0700)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START d391584
Register Gson 1.x tree-style adapters in the TypeAdapter.Factory list rather than in the ParameterizedTypeHandlerMap. (Sun Nov 20 19:55:01 2011 +0000)
BUG START d7fbac0
Rename TypeAdapter.Factory to TypeAdapterFactory. (Fri Dec 23 18:27:13 2011 +0000)
BUG START 117d8ea
Add TypeAdapterFactory support to @JsonAdapter. (Mon Aug 4 16:58:41 2014 +0000)
BUG START 83e5a49
Renamed Gson.getNextAdapter to getDelegateAdapter. Deleted testParameterizedMapSubclassDeserialization which we decided to not fix. Added simple tests for getDelegateAdapter (Thu Apr 12 18:49:27 2012 +0000)
BUG START 618343f
Clarify the fact that the behaviour of getDelegateAdapter depends on registration order. (Thu Sep 3 14:43:34 2015 +0100)
FIX 1e7625b
fix: ParseBenchmark json property typo (#2473)
2023-08-19
Line 354 in metrics/src/main/java/com/google/gson/metrics/ParseBenchmark.java
BUG START 5acaee4
Check in our best Jackson vs. Gson comparison benchmarks. http://microbenchmarks.appspot.com/run/limpbizkit@gmail.com/com.google.gson.metrics.ParseBenchmark (Thu Dec 15 07:03:01 2011 +0000)
FIX 5a87d80
Fixed Typo in GsonBuilder.java (#2449)
2023-07-27
Line 60 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 61 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 123 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 277 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 577 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style. (Mon Oct 13 18:40:20 2008 +0000)
BUG START 7b223a8
Adding JavaDoc to the enableComplexMapKeySerialization method on GsonBuilder. (Wed Mar 16 07:05:24 2011 +0000)
BUG START 08bbb22
Add newBuilder() API (#1142) (Wed Sep 20 18:53:10 2017 -0700)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 9cf0f8d
Update to latest Error Prone and fix some newly-flagged problems. (#2426)
2023-06-19
Line 63 in gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java
Line 64 in gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java
Line 65 in gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java
Line 66 in gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java
Line 67 in gson/src/test/java/com/google/gson/functional/ExposeFieldsTest.java
...and more
BUG START 3c4b072
Bump error_prone_core from 2.19.0 to 2.19.1 (#2388) (Thu May 11 09:43:50 2023 -0700)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 49dbc6f
Update Error Prone, bypass a bug in it, fix some problems it flags (#2387)
2023-05-09
Line 102 in gson/src/test/java/com/google/gson/FieldNamingPolicyTest.java
Line 141 in gson/src/test/java/com/google/gson/FieldNamingPolicyTest.java
Line 135 in pom.xml
Line 144 in pom.xml
BUG START be87c3f
Port Junit test to Truth in the package `com.google.gson` of the module `gson` (#2299) (Tue Jan 17 16:59:10 2023 +0100)
BUG START dc20b75
Fix error prone warns (#2320) (Wed Mar 1 23:23:27 2023 +0100)
BUG START 9f26679
Adds Error Prone to the `maven-compiler-plugin` (#2308) (Mon Feb 6 15:13:28 2023 +0100)
FIX 051cb43
Fixes outdated URL (`ISO8601Utils.java`) (#2363)
2023-04-01
Line 65 in extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java
Line 28 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
Line 35 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
Line 36 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
BUG START 0e3708b
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util (Fri Dec 5 07:41:08 2014 +0000)
BUG START bcd52a1
Added ISO8601 complete support for date deserialization (Mon Nov 23 01:11:41 2015 -0500)
FIX 3adead6
Fix incorrect sample code in User Guide (#2362)
2023-03-31
Line 654 in UserGuide.md
BUG START 883fbd0
Added language annotations to code blocks. (Fri Nov 27 18:33:31 2015 -0500)
FIX c34b9ff
Fix incorrect inherited URLs in `pom.xml` (#2351)
2023-03-23
Line 17 in pom.xml
Line 42 in pom.xml
BUG START 157b232
Created top-level pom to allow maven release to work (Sat Oct 3 17:25:20 2015 -0700)
FIX f467ec2
Fix incorrect comment in `pom.xml` (#2338)
2023-03-06
Line 91 in pom.xml
BUG START 0adcdc8
Fail Maven build on warnings (#2335) (Mon Mar 6 16:33:50 2023 +0100)
FIX 85ebaf7
Fix #2334 (#2337)
2023-03-06
Line 1590 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1617 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 358 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
BUG START 8d5de31
Inline character unescaping. This saves ~10% on the READER_LONG benchmark. (Sun Dec 25 07:09:46 2011 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX dc20b75
Fix error prone warns (#2320)
2023-03-01
Line 1014 in gson/src/main/java/com/google/gson/Gson.java
Line 1107 in gson/src/main/java/com/google/gson/Gson.java
Line 1186 in gson/src/main/java/com/google/gson/Gson.java
Line 1300 in gson/src/main/java/com/google/gson/Gson.java
Line 48 in gson/src/main/java/com/google/gson/internal/JavaVersion.java
...and more
BUG START 52288d7
rawtypes -> unchecked Fixed spurious eclipse warnings on deprecation, missing classes or parameters, etc. (Thu Feb 24 22:47:55 2011 +0000)
BUG START 9c9cafc
Only create one UnsafeAllocator instance (#2196) (Fri Sep 30 00:59:47 2022 +0200)
BUG START 5acaee4
Check in our best Jackson vs. Gson comparison benchmarks. http://microbenchmarks.appspot.com/run/limpbizkit@gmail.com/com.google.gson.metrics.ParseBenchmark (Thu Dec 15 07:03:01 2011 +0000)
BUG START 339c783
Updated the ProtoTypeAdapter to a version that works smoothly and supports field name/value customization. - Lets you customize the proto field name serialization per field - Lets you use different cases for serialization (e.g. you could use UpperCamelCase for your proto field names and willing to serialize them using LowerHyphen) - Lets you choose to serialize enum values with their value (0, 1, 2, ...) instead of their name. (Tue Oct 6 16:20:37 2015 -0700)
BUG START b1fb9ca
fix issue #1107: resolve element type in wildcard collection types (#1146) (Fri Sep 22 07:50:41 2017 +0700)
BUG START 3196450
Updated SuppressWarnings annotations to Eclipse 3.6/3.7 which is unfortunately incompatible with Eclipse 3.5 (rawtypes vs unchecked) This CL eliminates all eclipse warnings. (Thu Oct 20 21:32:46 2011 +0000)
BUG START fe30b85
Support arbitrary Number implementation for Object and Number deserialization (#1290) (Sat Oct 9 03:09:43 2021 +0300)
BUG START 4dda4ec
Use diamond operator when creating generic instances (#2104) (Mon Apr 18 00:27:21 2022 +0200)
BUG START 756131d
removed Eclipse 3.7 warnings. (Sun Dec 4 10:24:07 2011 +0000)
BUG START b0595c5
Fix failing to serialize Collection or Map with inaccessible constructor (#1902) (Tue Nov 9 16:16:35 2021 +0100)
BUG START d84e26d
Issue 1242: Printing Gson version when throwing AssertionError and IllegalArgumentException (#1321) (Thu May 17 09:41:21 2018 -0700)
BUG START ab40462
Check if class can be instantiated based on class modifiers. If not throw an unsupported operation exception. (Tue Apr 12 22:34:16 2016 +0200)
BUG START 45511fd
Added support for JsonSerializer/JsonDeserializer for JsonAdapter annotation. JsonAdapter is cached per the type of the JsonAdapter class. Added a test to ensure JsonAdapter works on fields of parameterized types Keep track of registered JsonAdapters and JsonAdapterFactorys in ThreadLocal. (Wed May 18 18:21:39 2016 -0700)
BUG START 6b9db2e
Add Gson.fromJson(..., TypeToken) overloads (#1700) (Mon Sep 19 15:47:11 2022 +0200)
BUG START 49b00d1
Port all Junit assert to Truth asserts (#2304) (Tue Jan 31 20:20:54 2023 +0100)
BUG START 1e7f3eb
tests to verify correct serialization and deserialization of = char. (Tue Nov 25 17:53:12 2008 +0000)
BUG START 9a24219
negative zero test and fix (#1069) (Wed Apr 19 23:26:36 2017 +0200)
BUG START f29d5bc
Create a LinkedTreeMap based on the LinkedHashTreeMap; however, removed all the hashing from it as resorted to a single tree. The insertion order is still preserved. (Fri May 3 16:11:16 2013 +0000)
BUG START 9b0e7f8
initial check-in for implementing support for protocol buffers in Gson (Tue Sep 14 17:59:04 2010 +0000)
BUG START 1ad0489
Initial version of Gson benchmark using Caliper (Tue Jan 25 19:20:20 2011 +0000)
BUG START 2658aca
Fix error prone warnings (#2316) (Wed Feb 15 14:18:43 2023 +0100)
BUG START aa236ec
Simplify BagOfPrimitives if statement (#1539) (Tue Jun 4 12:03:45 2019 -0600)
BUG START dfad0a3
Added tests in response to Issue 70. (Fri Nov 14 21:59:59 2008 +0000)
BUG START 67d512e
Created a JsonAdapter annotation that can be applied to classes to indicate their TypeAdapter. (Sat Mar 8 22:37:19 2014 +0000)
BUG START 46b7363
Fix a bug where we weren't reading enough characters when a BOM was encountered. (Tue Aug 28 01:48:25 2012 +0000)
BUG START 34d7521
moved the JsonSerializationContext/JsonDeserializationContext fields to where they are used. Also moved TreeTypeAdapter to internal.bind package for potential use in JsonAdapterAnnotationFactory. (Mon Mar 28 14:46:02 2016 -0700)
BUG START 6d50bce
Added serialize and deserialize parameters to the Expose annotation that control whether a field gets exposed during serialization or deserialization. (Tue May 19 23:47:53 2009 +0000)
BUG START 1a2170b
Port tests from JUnit 3 to JUnit 4 (#2294) (Thu Dec 22 15:04:16 2022 +0100)
BUG START ca1df7f
#1981: Optional OSGi bundle's dependency on sun.misc package (#1993) (Mon Oct 25 20:32:10 2021 +0200)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
BUG START 6c27553
Improve exception message for duplicate field names (#2251) (Mon Dec 5 02:27:43 2022 +0100)
BUG START 91be944
Added a new API method nullSafe() in TypeAdapter that can be used to avoid boilerplate handling of nulls in a type adapter. (Mon Dec 5 19:50:49 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 847d7f6
Improve documentation (#2193) (Fri Sep 9 16:32:55 2022 +0200)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START 83e5a49
Renamed Gson.getNextAdapter to getDelegateAdapter. Deleted testParameterizedMapSubclassDeserialization which we decided to not fix. Added simple tests for getDelegateAdapter (Thu Apr 12 18:49:27 2012 +0000)
BUG START e82637c
Add support for reflection access filter (#1905) (Sun Apr 17 18:05:18 2022 +0200)
FIX 742fd50
Fix error prone warns (#2319)
2023-02-17
Line 92 in gson/src/main/java/com/google/gson/JsonDeserializer.java
Line 84 in gson/src/main/java/com/google/gson/internal/bind/DateTypeAdapter.java
Line 157 in gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java
Line 140 in metrics/src/main/java/com/google/gson/metrics/ParseBenchmark.java
BUG START b4dab86
Make default adapters stricter; improve exception messages (#2000) (Mon Nov 1 23:08:04 2021 +0100)
BUG START 16b42ff
Update Caliper dependency; disable automatic result upload (#2019) (Mon Nov 22 19:01:26 2021 +0100)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 0aaf5ff
fix Java9 DateFormat changes (#1211) (Sat Dec 30 02:14:43 2017 +0700)
FIX 18bdb6d
Fix a couple of types in tests. (#2317)
2023-02-15
Line 304 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 164 in gson/src/test/java/com/google/gson/functional/ParameterizedTypesTest.java
BUG START 8aedbc8
Added a new GsonBuilder option to register a type adapter for a type hierarchy instead of a single type. Upgraded Gson version to 1.5 since a new API call is being added. (Mon Jun 21 23:26:06 2010 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 2658aca
Fix error prone warnings (#2316)
2023-02-15
Line 37 in extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
Line 243 in extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
Line 49 in extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java
Line 26 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 48 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START f7a164d
Fail Maven build on compiler warnings; remove some warning suppressions (#2183) (Sat Aug 27 02:36:18 2022 +0200)
BUG START 96b2ada
incorporated code review feedback: optimized LazilyParsedNumber.equals/hashcode() by utilizing the fact that value is never passed as null. (Sun Sep 27 13:58:01 2015 -0700)
BUG START 915c5d4
Converted BitSetTypeAdapter to the new style. (Fri Sep 16 05:02:30 2011 +0000)
BUG START 49ddab9
Add CodeQL GitHub code scanning workflow (#2076) (Fri Feb 18 03:40:40 2022 +0100)
BUG START 4dda4ec
Use diamond operator when creating generic instances (#2104) (Mon Apr 18 00:27:21 2022 +0200)
BUG START b0595c5
Fix failing to serialize Collection or Map with inaccessible constructor (#1902) (Tue Nov 9 16:16:35 2021 +0100)
BUG START af4879d
Move interceptors from 'alpha' to 'extras'. (Tue Oct 23 17:36:30 2012 +0000)
BUG START 19f54ee
Fixes #776: Add settings for the kind of newline to use (#2231) (Sun Feb 12 08:20:02 2023 -0800)
BUG START 14f16e2
Adding Red-Black Tree implementation and tying it into the Gson bindings. (Thu Oct 11 03:15:49 2012 +0000)
BUG START 9a80d09
Fix a regression I introduced with the changes to type hierarchy registration. If the registered type was a raw type, we need to also match the parameterizations of that type. (Wed Nov 23 13:38:25 2011 +0000)
BUG START be87c3f
Port Junit test to Truth in the package `com.google.gson` of the module `gson` (#2299) (Tue Jan 17 16:59:10 2023 +0100)
BUG START f29d5bc
Create a LinkedTreeMap based on the LinkedHashTreeMap; however, removed all the hashing from it as resorted to a single tree. The insertion order is still preserved. (Fri May 3 16:11:16 2013 +0000)
BUG START 6cca23c
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction. (Sun Jan 1 13:42:44 2012 +0000)
BUG START 7f77ad4
Replace `$Gson$Preconditions.checkNotNull` with `Objects.requireNonNull` (#2180) (Mon Aug 22 16:22:32 2022 +0200)
BUG START c6bef30
Array support. (Mon Jul 11 22:26:53 2011 +0000)
BUG START 9f26679
Adds Error Prone to the `maven-compiler-plugin` (#2308) (Mon Feb 6 15:13:28 2023 +0100)
BUG START 35c1317
Switch on ints rather than enums in JsonReader. (Tue Aug 14 21:32:18 2012 +0000)
FIX 19f54ee
Fixes #776: Add settings for the kind of newline to use (#2231)
2023-02-12
Line 72 in gson/src/main/java/com/google/gson/Gson.java
Line 73 in gson/src/main/java/com/google/gson/Gson.java
Line 144 in gson/src/main/java/com/google/gson/Gson.java
Line 185 in gson/src/main/java/com/google/gson/Gson.java
Line 205 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START b44bbbf
Added an API method to create a tree of JsonElement from an object. (Fri Apr 3 21:33:01 2009 +0000)
BUG START 7ddac52
Java 9 module (#1179) (Tue Dec 26 11:28:19 2017 -0500)
BUG START dea7ab8
Restore pretty printing. The pretty printing format isn't as compact as the previous format - for example arrays of integers are printed one-per-line, whereas the previous format compacted these to all sit on the same line. (Mon Nov 1 23:03:41 2010 +0000)
BUG START 380c4ec
Make dependency on java.sql optional (Sat May 9 17:37:21 2020 +0200)
BUG START bb7f0b6
Adopt JsonElementWriter in GSON. Add setSerializeNulls() to JsonWriter, so nulls can be skipped from serialization. This does not yet impact JsonElementWriter. (Fri Sep 30 07:08:44 2011 +0000)
BUG START b7cbfc5
Fixed Issue 141 by adding new APIs for writing out JSON string representation for JsonElements. (Fri Aug 7 20:58:41 2009 +0000)
BUG START 615c883
Add `GsonBuilder.disableJdkUnsafe()` (#1904) (Fri Dec 31 00:08:18 2021 +0100)
BUG START 3958b1f
Prefer writing chars instead of strings of length one (#1576) (Thu Sep 19 05:33:49 2019 +1200)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 3360c93
Add setting for leniency on Gson instance. (Sun Jan 17 03:03:04 2016 -0500)
BUG START 6b9db2e
Add Gson.fromJson(..., TypeToken) overloads (#1700) (Mon Sep 19 15:47:11 2022 +0200)
BUG START 46d0f58
Remove unnecessary explicit else statement (Fri Apr 5 16:20:06 2019 +0200)
BUG START 08bbb22
Add newBuilder() API (#1142) (Wed Sep 20 18:53:10 2017 -0700)
BUG START ca1df7f
#1981: Optional OSGi bundle's dependency on sun.misc package (#1993) (Mon Oct 25 20:32:10 2021 +0200)
BUG START 325f37c
Verify that JsonTreeReader and JsonTreeWriter override all methods (#2181) (Tue Aug 23 23:19:47 2022 +0200)
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 3690d36
incorporated feedback from r358 (Tue Dec 30 22:42:36 2008 +0000)
FIX af21798
Fix the `equals` method of `JsonPrimitive` to work with `BigInteger` (#2311)
2023-02-06
Line 183 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 184 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 285 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 303 in gson/src/test/java/com/google/gson/JsonPrimitiveTest.java
Line 304 in gson/src/test/java/com/google/gson/JsonPrimitiveTest.java
...and more
BUG START 51a72b4
Make JsonElement conversion methods more consistent and fix javadoc (#2178) (Sun Aug 21 22:29:40 2022 +0200)
BUG START fdcd394
Fixed issue 147. Integral values (byte, short, integer, long, BigInteger) are now comparable to each other. Floating point values (float, double, BigDecimal) are now comparable to each other. (Wed Sep 23 18:54:01 2009 +0000)
BUG START 423d18f
Revised test to take into account known problems with JsonElement that holds BigInteger values. (Thu Sep 29 22:18:16 2011 +0000)
BUG START 2ee8987
New failing test to show that JsonPrimitive.equals() is broken for values that are out of 'long' range (Fri Sep 9 07:58:52 2011 +0000)
BUG START be87c3f
Port Junit test to Truth in the package `com.google.gson` of the module `gson` (#2299) (Tue Jan 17 16:59:10 2023 +0100)
BUG START 0bcd1b3
Revised Gson to refuse to deserialize floating point numbers into integer types. This is probably a break from the past: previous versions of Gson allowed truncating a floating point into a long or int. However, it wasn't consistent in this behavior. It disallowed converting a BigDecimal value into BigInteger, int or long. Refusing to deserialize such values is aligned with fail-fast approach of uncovering bugs. (Wed May 4 23:26:22 2011 +0000)
FIX 6c12ded
Rewrite the `testParsingDatesFormattedWithSystemLocale()`, Fix #2199 (#2287)
2022-12-16
Line 77 in gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
Line 78 in gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
Line 79 in gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
Line 80 in gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
Line 86 in gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
...and more
BUG START 6e81cfd
Locale-awareness for date parsing and formatting: (Thu Feb 10 01:06:22 2011 +0000)
BUG START 380c4ec
Make dependency on java.sql optional (Sat May 9 17:37:21 2020 +0200)
BUG START 0864a02
Build on JDK 17 as well as 11. (#2198) (Fri Sep 23 14:33:28 2022 -0700)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START 21fc362
Fixed tests for java 11 (#1454) (Fri Oct 4 11:29:13 2019 -0700)
BUG START 0aaf5ff
fix Java9 DateFormat changes (#1211) (Sat Dec 30 02:14:43 2017 +0700)
FIX c9c8e8f
Fix the javadoc of JsonDeserializer.deserialize() (#2243)
2022-12-05
Line 86 in gson/src/main/java/com/google/gson/JsonDeserializer.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX e4c3b65
Fix non-threadsafe creation of adapter for type with cyclic dependency (#1832)
2022-12-05
Line 158 in gson/src/main/java/com/google/gson/Gson.java
Line 159 in gson/src/main/java/com/google/gson/Gson.java
Line 161 in gson/src/main/java/com/google/gson/Gson.java
Line 162 in gson/src/main/java/com/google/gson/Gson.java
Line 164 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 4552db2
Prefer existing adapter for concurrent `Gson.getAdapter` calls (#2153) (Mon Aug 1 19:59:04 2022 +0200)
BUG START 7e76014
Smash together MiniGson and Gson. This changes Gson to be the MiniGson rather than delegating to the MiniGson. It means that the MiniGson objects passed into streaming type adapters are now fully-capable 'Gson' objects. (Sun Nov 20 15:23:08 2011 +0000)
BUG START d84e26d
Issue 1242: Printing Gson version when throwing AssertionError and IllegalArgumentException (#1321) (Thu May 17 09:41:21 2018 -0700)
BUG START f7a164d
Fail Maven build on compiler warnings; remove some warning suppressions (#2183) (Sat Aug 27 02:36:18 2022 +0200)
BUG START a851569
Adds getters for config fields. (Mon Apr 25 10:26:41 2016 -0500)
BUG START 18b9ba4
Improve GsonTest.testGetAdapter_Concurrency (#2177) (Fri Aug 19 19:25:20 2022 +0200)
BUG START 6dc6b4b
Fix object leak from ThreadLocal. (Mon Jan 14 22:05:28 2013 +0000)
BUG START 8451c1f
Fix TypeAdapterRuntimeTypeWrapper not detecting reflective TreeTypeAdapter and FutureTypeAdapter (#1787) (Tue Oct 11 01:10:48 2022 +0200)
BUG START 4dda4ec
Use diamond operator when creating generic instances (#2104) (Mon Apr 18 00:27:21 2022 +0200)
BUG START 756131d
removed Eclipse 3.7 warnings. (Sun Dec 4 10:24:07 2011 +0000)
BUG START 1e18dce
Don't subclass ThreadLocal. (Tue Oct 23 02:41:34 2012 +0000)
BUG START 5bebf97
Fix changes to GsonBuilder affecting existing Gson instances (#1815) (Mon Aug 22 15:49:48 2022 +0200)
FIX dd6635d
Making consistent prefixs in PerformanceTest (#1760)
2022-10-29
Line 165 in gson/src/test/java/com/google/gson/metrics/PerformanceTest.java
Line 221 in gson/src/test/java/com/google/gson/metrics/PerformanceTest.java
Line 346 in gson/src/test/java/com/google/gson/metrics/PerformanceTest.java
BUG START b75e1bb
Code cleanup (Removed spaces) (#1474) (Sun Mar 3 20:18:06 2019 +0100)
BUG START d8095c7
minor improvements to the test (Tue Jul 14 01:08:04 2009 +0000)
BUG START 389f918
Add new performance test for large objects (many fields). (Wed May 19 21:29:58 2010 +0000)
FIX 9578583
Small tweaks to fix Error Prone warnings. (#2227)
2022-10-24
Line 280 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 213 in gson/src/test/java/com/google/gson/JsonArrayAsListTest.java
Line 230 in gson/src/test/java/com/google/gson/JsonArrayAsListTest.java
Line 62 in gson/src/test/java/com/google/gson/JsonObjectAsMapTest.java
BUG START 5269701
Improve `JsonReader.skipValue()` (#2062) (Mon Oct 10 16:51:36 2022 +0200)
BUG START 954d526
Add `JsonArray.asList` and `JsonObject.asMap` view methods (#2225) (Sun Oct 16 21:30:49 2022 +0200)
FIX 8451c1f
Fix TypeAdapterRuntimeTypeWrapper not detecting reflective TreeTypeAdapter and FutureTypeAdapter (#1787)
2022-10-11
Line 1318 in gson/src/main/java/com/google/gson/Gson.java
Line 1328 in gson/src/main/java/com/google/gson/Gson.java
Line 1330 in gson/src/main/java/com/google/gson/Gson.java
Line 1332 in gson/src/main/java/com/google/gson/Gson.java
Line 1336 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 7e76014
Smash together MiniGson and Gson. This changes Gson to be the MiniGson rather than delegating to the MiniGson. It means that the MiniGson objects passed into streaming type adapters are now fully-capable 'Gson' objects. (Sun Nov 20 15:23:08 2011 +0000)
BUG START 34d7521
moved the JsonSerializationContext/JsonDeserializationContext fields to where they are used. Also moved TreeTypeAdapter to internal.bind package for potential use in JsonAdapterAnnotationFactory. (Mon Mar 28 14:46:02 2016 -0700)
BUG START f602bce
Nice documentation for TypeAdapter. (Sat Dec 3 19:46:25 2011 +0000)
BUG START f777a19
Remove dead code and fold contents of single-member helper classes into their clients. (Sun Nov 20 21:02:26 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX 47668fa
Fix typo in GsonBuilder Javadoc (#2213)
2022-10-01
Line 255 in gson/src/main/java/com/google/gson/GsonBuilder.java
BUG START 7b223a8
Adding JavaDoc to the enableComplexMapKeySerialization method on GsonBuilder. (Wed Mar 16 07:05:24 2011 +0000)
FIX 2591ede
Fix incorrect HTML headings in Javadoc (#2200)
2022-09-25
Line 122 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 161 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 247 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 285 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 99 in gson/src/main/java/com/google/gson/TypeAdapter.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 0864a02
Build on JDK 17 as well as 11. (#2198) (Fri Sep 23 14:33:28 2022 -0700)
BUG START a98d6ea
Fix the map type adapter to support array serialization natively. (Mon Sep 12 05:51:17 2011 +0000)
BUG START c1e7e2d
Add possibility to maintain type variable in created pojo (#1342) (Fri Jul 20 23:34:45 2018 +0200)
BUG START d7fbac0
Rename TypeAdapter.Factory to TypeAdapterFactory. (Fri Dec 23 18:27:13 2011 +0000)
BUG START b28e518
Hide toJson/fromJson APIs for the 2.1 release. (Wed Dec 21 21:30:18 2011 +0000)
BUG START 47b28d9
The JavaDoc is now more accurate about the type adapter serialization and deserialization (#1441) (Tue Oct 29 01:11:15 2019 +0200)
BUG START 6ffcdf3
Fix Javadoc warnings and errors (#2040) (Mon Dec 27 00:30:21 2021 +0100)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX 5bebf97
Fix changes to GsonBuilder affecting existing Gson instances (#1815)
2022-08-22
Line 21 in gson/src/test/java/com/google/gson/GsonBuilderTest.java
Line 24 in gson/src/test/java/com/google/gson/GsonBuilderTest.java
Line 25 in gson/src/test/java/com/google/gson/GsonBuilderTest.java
Line 26 in gson/src/test/java/com/google/gson/GsonBuilderTest.java
Line 44 in gson/src/test/java/com/google/gson/GsonBuilderTest.java
...and more
BUG START e9b576c
removed unused import (Sun May 6 07:19:23 2012 +0000)
BUG START dc4e43b
Permit users to define type adapters for primitive types and strings. (Sat Jun 30 02:37:49 2012 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 3df2db1
Don't permit a type adapter for String to be registered. (Thu Apr 12 18:27:48 2012 +0000)
FIX 51a72b4
Make JsonElement conversion methods more consistent and fix javadoc (#2178)
2022-08-21
Line 58 in gson/src/main/java/com/google/gson/JsonArray.java
Line 185 in gson/src/main/java/com/google/gson/JsonArray.java
Line 187 in gson/src/main/java/com/google/gson/JsonArray.java
Line 205 in gson/src/main/java/com/google/gson/JsonArray.java
Line 208 in gson/src/main/java/com/google/gson/JsonArray.java
...and more
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START ca2ed74
Fix warnings (#2014) (Sun Nov 7 17:43:49 2021 +0100)
BUG START ea79cd6
Allow booleans and number to be deserialized into a "String" field/object. (Sun Dec 14 04:42:16 2008 +0000)
BUG START 2856750
Corrected Javadocs to indicate that NumberFormatException gets thrown instead of ClassCastException while attempting to convert a JsonPrimitive to a number. (Fri Mar 11 00:14:49 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START c9cb05f
Do not leak out a ClassCastException to our clients. (Fri Mar 27 19:43:33 2009 +0000)
BUG START 92b6173
Deprecate JsonElement.getAsCharacter (Mon Jul 30 10:44:21 2018 -0700)
BUG START 49ddab9
Add CodeQL GitHub code scanning workflow (#2076) (Fri Feb 18 03:40:40 2022 +0100)
BUG START 893a7e1
Fix malformed JsonElement.getAsBigDecimal() javadoc (#1772) (Sun Jul 31 23:08:24 2022 +0200)
BUG START 8246351
Parsing numbers lazily as a performance enhancement. This avoids needing to parse number if the equivalent object field doesn't exist. It also avoids the performance penalty of trying to parse it eagerly as a big decimal, float etc. (Thu Apr 28 21:57:29 2011 +0000)
BUG START 2b1f3ee
Removed a bunch of unused code and unnecessary else statements. (Tue Sep 28 13:42:43 2010 +0000)
BUG START c894fb6
Default support for BitSet. As well, provide more flexibility on getAsBoolean for a JsonPrimitive. (Thu Apr 14 02:42:47 2011 +0000)
BUG START 423d18f
Revised test to take into account known problems with JsonElement that holds BigInteger values. (Thu Sep 29 22:18:16 2011 +0000)
BUG START fa94721
Add isEmpty method to JsonArray class (#1640) (Mon Mar 2 18:52:37 2020 -0400)
BUG START 53234aa
Add test for JsonArray.isEmpty() (#2173) (Mon Aug 8 17:38:56 2022 +0200)
BUG START 0bcd1b3
Revised Gson to refuse to deserialize floating point numbers into integer types. This is probably a break from the past: previous versions of Gson allowed truncating a floating point into a long or int. However, it wasn't consistent in this behavior. It disallowed converting a BigDecimal value into BigInteger, int or long. Refusing to deserialize such values is aligned with fail-fast approach of uncovering bugs. (Wed May 4 23:26:22 2011 +0000)
BUG START 3090a7e
Made deepCopy public (#1091) (Wed May 31 10:33:37 2017 -0700)
BUG START c5dc3b7
Correct JsonElement javadoc exception references. (Sat Aug 9 06:14:12 2014 +0000)
FIX 6fc1c8f
Fix `TypeAdapter.toJson` throwing AssertionError for custom IOException (#2172)
2022-08-08
Line 134 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 135 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 208 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 209 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 219 in gson/src/main/java/com/google/gson/TypeAdapter.java
...and more
BUG START f602bce
Nice documentation for TypeAdapter. (Sat Dec 3 19:46:25 2011 +0000)
BUG START 0328479
There is no I/O writing to a StringWriter. (Wed Jun 17 22:00:03 2015 -0400)
FIX a4bc6c1
Fix JsonTreeReader throwing wrong exception type for non-finite doubles (#1782)
2022-08-08
Line 216 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 58 in gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java
Line 64 in gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java
Line 70 in gson/src/test/java/com/google/gson/internal/bind/JsonElementReaderTest.java
BUG START 6c0566b
Start using JsonElementReader in TypeAdapter. (Fri Sep 30 03:47:30 2011 +0000)
FIX f7cefcb
Fix JsonWriter documentation regarding top-level value (#1766)
2022-08-08
Line 45 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 46 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 47 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 48 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 173 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 486820f
Fix some test problems. (Sat Aug 28 08:18:13 2010 +0000)
FIX 9868957
Fix typo (#1246)
2022-08-08
Line 34 in gson/src/main/java/com/google/gson/stream/JsonScope.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX 46b97bf
Fixed nullSafe usage. (#1555)
2022-08-05
Line 69 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
Line 77 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
Line 53 in gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java
Line 66 in gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java
Line 77 in gson/src/main/java/com/google/gson/internal/bind/TreeTypeAdapter.java
BUG START d7fbac0
Rename TypeAdapter.Factory to TypeAdapterFactory. (Fri Dec 23 18:27:13 2011 +0000)
BUG START 193349f
made nullSafe wrapper of JsonAdapter optional (Tue Jun 28 09:18:03 2016 +0200)
BUG START 2df6550
Don't use ThreadLocals for @JsonAdapter factories and getDelegateAdapter(). (Thu Jun 2 00:18:03 2016 -0400)
BUG START d391584
Register Gson 1.x tree-style adapters in the TypeAdapter.Factory list rather than in the ParameterizedTypeHandlerMap. (Sun Nov 20 19:55:01 2011 +0000)
FIX a1d2ebc
Fix #1702: Gson.toJson creates CharSequence which does not implement toString (#1703)
2022-08-03
Line 92 in gson/src/main/java/com/google/gson/internal/Streams.java
Line 125 in gson/src/main/java/com/google/gson/internal/Streams.java
Line 126 in gson/src/main/java/com/google/gson/internal/Streams.java
Line 138 in gson/src/main/java/com/google/gson/internal/Streams.java
Line 23 in gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java
...and more
BUG START 0127891
Added a new API method in JsonParser to allow reading of multiple JSON objects on a stream asynchronously. (Fri May 8 22:22:34 2009 +0000)
BUG START 016261d
Throw JsonParseException in event of binding failures like type mismatches. (Mon Oct 24 01:32:46 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START fa40b4c
Rename GsonReader to Streams; check that class in. (Thu Sep 2 00:10:02 2010 +0000)
BUG START 65df3b9
Add a type adapter for JsonElement, so it serializes just like everything else. (Sun Oct 2 16:59:56 2011 +0000)
FIX 893a7e1
Fix malformed JsonElement.getAsBigDecimal() javadoc (#1772)
2022-07-31
Line 271 in gson/src/main/java/com/google/gson/JsonElement.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 2eb3758
Fix RuntimeTypeAdapterFactory (#2139)
2022-07-21
Line 19 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 20 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 21 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 22 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 208 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
...and more
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
BUG START 3d50a6b
New failing test for RuntimeTypeAdapters! (Fri May 27 18:47:31 2011 +0000)
BUG START 7a5cef9
Revised to the new name getDelegateAdapter. (Sat Apr 14 19:04:14 2012 +0000)
FIX 710a76c
Fix JsonReader.hasNext() returning true at end of document (#2061)
2022-01-28
Line 104 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 416 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START bd2a0ac
Support JsonReader API on DOM objects. (Fri Sep 30 00:44:37 2011 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX 26e08fe
Fix a mistaken use of StringBuilder('#'). (#2052)
2022-01-12
Line 1737 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
BUG START 6e06bf0
Fix for an ArrayIndexOutOfBoundsException. (Tue Nov 9 10:08:21 2021 -0800)
FIX d38e397
Fix ObjectTest not restoring default Locale (#2050)
2022-01-10
Line 58 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
BUG START 3a38705
Tests to demonstrate that GSON 2 fixes some user-reported bugs. (Sun Oct 2 15:18:12 2011 +0000)
FIX 6ffcdf3
Fix Javadoc warnings and errors (#2040)
2021-12-27
Line 31 in extras/src/main/java/com/google/gson/interceptors/Intercept.java
Line 32 in extras/src/main/java/com/google/gson/interceptors/Intercept.java
Line 50 in extras/src/main/java/com/google/gson/interceptors/Intercept.java
Line 79 in gson/src/main/java/com/google/gson/Gson.java
Line 94 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 457b37f
Replace var-args with single parameter. (Mon Apr 11 18:09:59 2011 +0000)
BUG START 339c783
Updated the ProtoTypeAdapter to a version that works smoothly and supports field name/value customization. - Lets you customize the proto field name serialization per field - Lets you use different cases for serialization (e.g. you could use UpperCamelCase for your proto field names and willing to serialize them using LowerHyphen) - Lets you choose to serialize enum values with their value (0, 1, 2, ...) instead of their name. (Tue Oct 6 16:20:37 2015 -0700)
BUG START c25278b
Created an alpha package that holds experimental feature. Added support for JsonPostDeserializer that allows you to invoke postDeserialize methods on an Gson deserialized object. (Thu Oct 11 03:20:36 2012 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 7afda06
Added warning in GsonBuilder regarding setting date format correctly. (Wed Apr 6 00:35:05 2011 +0000)
BUG START fe30b85
Support arbitrary Number implementation for Object and Number deserialization (#1290) (Sat Oct 9 03:09:43 2021 +0300)
BUG START 530cb74
Fix javadoc doclint HTML warnings (#1653) (Mon Feb 17 23:46:15 2020 +0100)
BUG START 4816941
Address code review comments on r1154 (Mon Jul 2 20:32:38 2012 +0000)
BUG START 9b0e7f8
initial check-in for implementing support for protocol buffers in Gson (Tue Sep 14 17:59:04 2010 +0000)
FIX 6e06bf0
Fix for an ArrayIndexOutOfBoundsException.
2021-11-09
Line 237 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1607 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1608 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START 9bf25c2
Refactor prefix array & loop logic, use if-s instead (#1505) (Fri Oct 4 22:45:06 2019 +0200)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX b0595c5
Fix failing to serialize Collection or Map with inaccessible constructor (#1902)
2021-11-09
Line 1 in gson/pom.xml
Line 43 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 51 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 101 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 102 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
...and more
BUG START a300148
Fix StackOverflowError on resolving recursive types by collapsing chains of type bounds (#1075) (Wed May 31 07:47:04 2017 +0700)
BUG START b75e1bb
Code cleanup (Removed spaces) (#1474) (Sun Mar 3 20:18:06 2019 +0100)
BUG START 5db4cae
A whole bunch of tests for support for null elements. (Fri Oct 14 03:17:12 2011 +0000)
BUG START 4081dba
Added a test for serialization/deserialization of enum classes with fields (Sat Mar 17 16:00:46 2018 -0700)
BUG START 59a8aed
Use SecurityManager to read enum fields (Wed Aug 4 12:24:55 2021 +0900)
BUG START 049bf84
Using sun.misc.Unsafe only through reflection to avoid binary dependency (#1306) (Tue May 1 09:57:45 2018 -0700)
BUG START 361292f
Fix warnings (Wed Feb 12 19:26:06 2020 +0100)
BUG START 8d5a413
added tests for Throwable. Revised ReflectiveTypeAdapterFactory to ignore self-referencing fields. (Sun Nov 16 22:55:18 2014 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
BUG START b39494d
Fix fallback behavior of UnsafeReflectionAllocator when AccessibleObject isn't so accessible (Tue May 26 20:12:06 2020 -0700)
BUG START def5862
[maven-release-plugin] prepare release gson-1.7 (Tue Apr 12 21:53:40 2011 +0000)
BUG START 8445689
Java 9 support: use Unsafe-based reflection in Java 9+ (#1218) (Thu Jan 4 02:08:50 2018 +0700)
BUG START 68f99f2
Make EnumTypeAdapter friendly with obfuscation (Fri Mar 22 17:11:11 2019 +0900)
BUG START 290fb69
Provide more diagnostics when a constructor fails. (Sat Oct 22 20:22:47 2011 +0000)
BUG START c71e61c
Converted EnumTypeAdapter to new style. Got rid of default Hierarchy Serializer/Deserializers from DefaultTypeAdapters. Got rid of methods for gettting default serializers/deserializers/instance creators. Instead we reuse the static final instances. Fixed warnings in TypeAdapters where a parameterized type T was hiding the parameterized T in methods. Removed support to unwrap single element array of enums into enum values. Also removed the test that verifies this behavior. (Fri Sep 16 05:40:05 2011 +0000)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START 7d96ce8
fixed tests to take care of stackTrace element appearing sometimes (Wed Dec 10 22:43:44 2014 +0000)
BUG START 21ddfc9
Show default serialization and deserialization works with subclasses of an enum type. (Mon Apr 4 19:19:46 2011 +0000)
BUG START fef43b2
Added support to serialize/deserialize ConcurrentMap and ConcurrentNavigableMap. (Wed Nov 4 21:25:15 2015 -0800)
FIX ca2ed74
Fix warnings (#2014)
2021-11-07
Line 71 in gson/pom.xml
Line 347 in gson/src/main/java/com/google/gson/JsonArray.java
Line 107 in gson/src/test/java/com/google/gson/JsonObjectTest.java
Line 42 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
Line 22 in gson/src/test/java/com/google/gson/internal/JavaVersionTest.java
...and more
BUG START 2016e95
Simplify Gson poms. (Thu Feb 11 12:47:25 2016 -0500)
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 380c4ec
Make dependency on java.sql optional (Sat May 9 17:37:21 2020 +0200)
BUG START ebf24fb
Fixed issue 134 by adding support for java.sql Date and Timestamp classses. (Fri Dec 4 01:21:13 2009 +0000)
BUG START c2fae85
Implement JSON Path for JsonTreeReader. (Fri Jun 10 00:08:33 2016 -0400)
BUG START 4d735f1
Add new testcases (#1638) (Tue Feb 18 06:55:19 2020 +0800)
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
BUG START 5ae7e1f
Adding new convenience method to JsonObject for adding Booleans and Characters. (Sun Nov 30 23:36:29 2008 +0000)
BUG START 9171715
Fix ISO8601UtilsTest failing on systems with UTC+X (Sun May 3 00:34:08 2020 +0200)
FIX b3188c1
Fix `FieldNamingPolicy.upperCaseFirstLetter` uppercasing non-letter (#2004)
2021-11-01
Line 74 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 92 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 115 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 138 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 144 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
...and more
BUG START 6e57df7
FieldNamingPolicy: Use Locale.ENGLISH to be locale insensitive (Tue Jun 9 15:17:08 2015 +0100)
BUG START 63ee47c
Refactor uppercaseFirstLetter, add additional field to test (#1515) (Sat Apr 27 00:49:22 2019 +0200)
BUG START ab35f11
add FieldNamingPolicy.LOWER_CASE_WITH_DOTS (#1278) (Sat Apr 28 09:50:08 2018 +0800)
BUG START 7a1c94f
Remove synthetic accessors from being generated. (Sun Dec 27 01:39:19 2015 -0500)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START f89e92a
Tighten up some of the fields naming policy code. The main thrust of this change is replacing classes like UpperCaseNamingPolicy with the corresponding method calls. Classes like CompositeFieldNamingPolicy are replaced by sequences of method calls. This also replaces unit tests with functional tests. (Mon Nov 21 05:08:23 2011 +0000)
FIX ba96d53
Fix missing bounds checks for JsonTreeReader.getPath() (#2001)
2021-10-25
Line 311 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 315 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
BUG START c2fae85
Implement JSON Path for JsonTreeReader. (Fri Jun 10 00:08:33 2016 -0400)
FIX cd748df
Fix LongSerializationPolicy null handling being inconsistent with Gson (#1990)
2021-10-11
Line 20 in gson/src/main/java/com/google/gson/LongSerializationPolicy.java
Line 29 in gson/src/main/java/com/google/gson/LongSerializationPolicy.java
Line 32 in gson/src/main/java/com/google/gson/LongSerializationPolicy.java
Line 43 in gson/src/main/java/com/google/gson/LongSerializationPolicy.java
Line 47 in gson/src/main/java/com/google/gson/LongSerializationPolicy.java
...and more
BUG START cc5cbe5
Integration test for long serialization policy. (Thu Oct 20 04:57:58 2011 +0000)
BUG START a00c5ff
Simplify inner strategy in LongSerializationPolicy. (Sun Nov 20 20:16:46 2011 +0000)
BUG START e2cfc0c
Update GsonBuilder API to accept an enum for the serialize Long as string. This will be useful if/when we implement support to serialize a long type as an array of integers. (Sun Jan 11 06:11:29 2009 +0000)
FIX 1cc1627
Fix incorrect feature request template label (#1982)
2021-10-07
Line 5 in .github/ISSUE_TEMPLATE/feature_request.md
BUG START 7cfdf44
Add GitHub issue templates (#1977) (Wed Sep 29 01:35:55 2021 +0200)
FIX 26a1928
Fix `RuntimeTypeAdapterFactory` depending on internal `Streams` class (#1959)
2021-09-18
Line 1 in extras/pom.xml
Line 3 in extras/pom.xml
Line 9 in extras/pom.xml
Line 10 in extras/pom.xml
Line 11 in extras/pom.xml
...and more
BUG START 2016e95
Simplify Gson poms. (Thu Feb 11 12:47:25 2016 -0500)
BUG START 1d9e86e
fixed extras build (Thu Dec 4 22:07:13 2014 +0000)
BUG START f602bce
Nice documentation for TypeAdapter. (Sat Dec 3 19:46:25 2011 +0000)
BUG START 78327b9
initial checkin for the extras project (Fri May 13 18:30:20 2011 +0000)
BUG START efde667
Test that GraphAdapterBuilder works with collections. (Sun Jan 1 15:48:01 2012 +0000)
BUG START 3e324cc
Added an example of using raw collection for serialization and deserialization with Gson. (Fri May 27 18:33:03 2011 +0000)
BUG START 6ec6caa
New extension: handle circular references. (Fri Dec 30 07:34:43 2011 +0000)
BUG START 982c893
updated extras pom to latest plugin versions. updated organization names for Jesse and Inder. (Wed Aug 1 20:54:37 2012 +0000)
BUG START d8d8ccb
Simplify maintainType logic (Mon Jul 30 10:43:52 2018 -0700)
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
BUG START 6cca23c
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction. (Sun Jan 1 13:42:44 2012 +0000)
BUG START 4512f31
Added PostConstruct Factory sample in Extras. (Fri Sep 16 17:35:34 2016 -0700)
BUG START 074a556
Bump junit from 3.8.2 to 4.13.1 in /extras (Mon Oct 12 22:55:48 2020 +0000)
FIX 66fd2ac
Fix formatting
2021-08-30
Line 254 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 255 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 256 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 257 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 258 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
...and more
BUG START ac14b4c
Make the nextJsonElement more robust Add test cases (Wed Aug 25 09:56:01 2021 -0400)
FIX d8c5fcf
Fix indentation of EnumWithObfuscatedTest
2021-08-04
Line 48 in gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
Line 49 in gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
Line 50 in gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
Line 51 in gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
Line 52 in gson/src/test/java/com/google/gson/functional/EnumWithObfuscatedTest.java
BUG START 94f894c
Add testcase for obfuscated enum class (Mon Mar 25 11:37:09 2019 +0900)
FIX 1406477
Fix post-obfuscate-class task to include obfuscated test classes
2020-09-10
Line 148 in gson/pom.xml
BUG START 94f894c
Add testcase for obfuscated enum class (Mon Mar 25 11:37:09 2019 +0900)
FIX b39494d
Fix fallback behavior of UnsafeReflectionAllocator when AccessibleObject isn't so accessible
2020-05-26
Line 82 in gson/src/main/java/com/google/gson/internal/reflect/UnsafeReflectionAccessor.java
BUG START 8445689
Java 9 support: use Unsafe-based reflection in Java 9+ (#1218) (Thu Jan 4 02:08:50 2018 +0700)
FIX 361292f
Fix warnings
2020-02-12
Line 337 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 341 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 40 in gson/src/test/java/com/google/gson/functional/CollectionTest.java
Line 39 in gson/src/test/java/com/google/gson/internal/bind/RecursiveTypesResolveTest.java
BUG START 03a72e7
Fix StackOverflowError on resolving types with TypeVariable recursion (#1128) (Tue Aug 1 00:50:29 2017 +0700)
BUG START 01944b2
additional tests for PriorityQueue, Vector and Stack. (Fri Nov 6 16:16:56 2015 -0800)
BUG START 7845c38
Minor cleanups in deprecations and other warnings (#1522) (Fri Oct 4 00:49:25 2019 +0200)
FIX 9171715
Fix ISO8601UtilsTest failing on systems with UTC+X
2020-05-03
Line 20 in gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
Line 54 in gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
Line 55 in gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
Line 56 in gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
Line 57 in gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
...and more
BUG START 4d735f1
Add new testcases (#1638) (Tue Feb 18 06:55:19 2020 +0800)
FIX 530cb74
Fix javadoc doclint HTML warnings (#1653)
2020-02-17
Line 49 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
Line 53 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
Line 47 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 49 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
Line 50 in gson/src/main/java/com/google/gson/FieldNamingPolicy.java
...and more
BUG START 67d512e
Created a JsonAdapter annotation that can be applied to classes to indicate their TypeAdapter. (Sat Mar 8 22:37:19 2014 +0000)
BUG START 6f59bc3
Added "Until" type version. This new annotation allows you to remove members from the JSON output beginning at a certain version number. (Mon Dec 1 00:10:04 2008 +0000)
BUG START ab35f11
add FieldNamingPolicy.LOWER_CASE_WITH_DOTS (#1278) (Sat Apr 28 09:50:08 2018 +0800)
BUG START ad4ff69
Adding new default field naming policy (Tue Sep 29 18:44:56 2009 +0000)
BUG START 6d50bce
Added serialize and deserialize parameters to the Expose annotation that control whether a field gets exposed during serialization or deserialization. (Tue May 19 23:47:53 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 67af0dd
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. (Sun Mar 9 08:21:06 2014 +0000)
BUG START dc5922e
Addresses comments in r481 (except for the interface change....leaving FieldAttributes as a class). (Thu Oct 8 20:51:40 2009 +0000)
BUG START ba01548
Add support to allow spaces in the JSON field name. (Wed May 26 17:40:19 2010 +0000)
BUG START 109915d
Implemented support for multiple values for SerializedName annotation. (Sat Oct 3 02:01:16 2015 -0700)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX 521fab2
Fix OSGi metadata generation to work on JavaSE < 9 (#1603)
2019-11-04
Line 6 in gson/bnd.bnd
Line 55 in gson/pom.xml
Line 56 in gson/pom.xml
Line 57 in gson/pom.xml
Line 58 in gson/pom.xml
BUG START 4eff1a8
Restore OSGi manifest headers (Tue Feb 23 11:25:21 2016 -0500)
BUG START f7012e5
Adding maven-bundle-plugin. (#1071) (Wed May 24 18:25:50 2017 -0400)
FIX 9bf25c2
Refactor prefix array & loop logic, use if-s instead (#1505)
2019-10-04
Line 192 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 193 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1575 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1579 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1580 in gson/src/main/java/com/google/gson/stream/JsonReader.java
...and more
BUG START b96d2d9
Support non-execute prefixes. (Sun Aug 26 19:31:06 2012 +0000)
FIX 21fc362
Fixed tests for java 11 (#1454)
2019-10-04
Line 91 in gson/src/test/java/com/google/gson/DefaultDateTypeAdapterTest.java
BUG START a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311) (Wed May 9 13:10:08 2018 -0700)
FIX 0409a2e
Fix typo in UserGuide (#1572)
2019-09-18
Line 251 in UserGuide.md
BUG START 14e53cf
Added code formatting; removed HTML tags. (Fri Nov 27 15:45:21 2015 -0500)
FIX c5a3f21
Refactor JsonParser to statics & fix tests
2019-04-15
Line 42 in gson/src/main/java/com/google/gson/JsonParser.java
Line 44 in gson/src/main/java/com/google/gson/JsonParser.java
Line 45 in gson/src/main/java/com/google/gson/JsonParser.java
Line 51 in gson/src/main/java/com/google/gson/JsonParser.java
Line 54 in gson/src/main/java/com/google/gson/JsonParser.java
...and more
BUG START 7e1e4ea
Remove the constraint that map keys mustn't be the empty string. (Sat Aug 28 05:02:33 2010 +0000)
BUG START 0a3f5fa
Required strings to be quoted even in lenient mode. (Tue Nov 16 22:14:40 2010 +0000)
BUG START f3c14b4
Added support for promoteNameToValue for JsonElementReader. (Sat Dec 3 02:35:46 2011 +0000)
BUG START 2034090
Changed version to 1.3 Made JsonParser.parse a non-static method. (Tue Mar 31 17:53:23 2009 +0000)
BUG START 0e17041
Added another test to JsonParserTest. (Wed Sep 23 19:21:09 2009 +0000)
BUG START b0f50bb
Return a "JsonNull" object for empty whitespace input into the JsonParser. (Wed Sep 23 19:00:05 2009 +0000)
BUG START 747e3c3
Support mixed streaming and databinding with new APIs. (Thu Sep 2 00:15:23 2010 +0000)
BUG START 6c0566b
Start using JsonElementReader in TypeAdapter. (Fri Sep 30 03:47:30 2011 +0000)
BUG START b649f27
Support unquoted single word strings in lenient mode! (Thu Feb 10 01:36:27 2011 +0000)
BUG START 582b0a0
Fixed issue 443 by relying on Streams.parse() to return a JsonNull on empty documents and throw a JsonParseException otherwise. (Sat Jun 30 18:48:11 2012 +0000)
BUG START 0b4bf77
Changed JsonParser API to throw specific JsonIOException,JsonSyntaxException instead of the general JsonParseException (Fri Nov 5 20:31:52 2010 +0000)
BUG START 32afd1a
Fixing parsing of unquoted strings to be (somewhat) consistent with previous versions of Gson. The difference with this version is that Gson will throw a more specific exception rather than JsonParseException. (Wed Nov 10 02:02:57 2010 +0000)
BUG START 1c5f513
Revert most of r677: Required strings to be quoted even in lenient mode. As far as Inderjeet and I can tell, this is consistent with Gson 1.5. (Wed Nov 24 23:22:13 2010 +0000)
BUG START 1bb0105
Tests for JsonElementReader.close (Fri Sep 30 03:31:44 2011 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX ab0821c
Fix wrong reference in Versioning Support example (#1482)
2019-03-07
Line 513 in UserGuide.md
Line 518 in UserGuide.md
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
FIX 5bbc768
Fix JPMS module setup (fixes #1315) (#1402)
2018-10-18
Line 4 in .travis.yml
Line 5 in .travis.yml
Line 5 in gson/build.gradle
Line 37 in gson/pom.xml
Line 708 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START d84e26d
Issue 1242: Printing Gson version when throwing AssertionError and IllegalArgumentException (#1321) (Thu May 17 09:41:21 2018 -0700)
BUG START 2016e95
Simplify Gson poms. (Thu Feb 11 12:47:25 2016 -0500)
BUG START 7fb3960
Fixed excludes section in maven-compiler-plugin (#1301) (Fri Apr 27 15:30:35 2018 -0700)
BUG START cd38056
Add Travis CI build. (Wed Jun 17 22:10:06 2015 -0400)
BUG START 4eff1a8
Restore OSGi manifest headers (Tue Feb 23 11:25:21 2016 -0500)
BUG START 6c05ced
Replaced oracle JDK 7 with openJDK 7 to fix broken build. (#1184) (Tue Oct 31 11:42:49 2017 -0700)
BUG START 941363f
Added gradle/Idea support (#1302) (Mon Apr 30 09:54:24 2018 -0700)
BUG START 4c3e471
Upgraded plugin versions (#1161) (Tue Sep 19 18:36:59 2017 -0700)
FIX e2296f4
Fix issue with recursive type variable protections to fix #1390
2018-09-25
Line 28 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 337 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 341 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 346 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 348 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
...and more
BUG START 883ce46
Second half of adopting Guice's types code. (Fri Dec 3 18:12:26 2010 +0000)
BUG START 03a72e7
Fix StackOverflowError on resolving types with TypeVariable recursion (#1128) (Tue Aug 1 00:50:29 2017 +0700)
FIX a6890bb
Fixed https://github.com/google/gson/issues/1310 (#1311)
2018-05-09
Line 35 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 62 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 81 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 96 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 29 in gson/src/main/java/com/google/gson/internal/bind/DateTypeAdapter.java
...and more
BUG START 8445689
Java 9 support: use Unsafe-based reflection in Java 9+ (#1218) (Thu Jan 4 02:08:50 2018 +0700)
BUG START 0aaf5ff
fix Java9 DateFormat changes (#1211) (Sat Dec 30 02:14:43 2017 +0700)
FIX 7fb3960
Fixed excludes section in maven-compiler-plugin (#1301)
2018-04-27
Line 68 in pom.xml
BUG START 7ddac52
Java 9 module (#1179) (Tue Dec 26 11:28:19 2017 -0500)
FIX 0aaf5ff
fix Java9 DateFormat changes (#1211)
2017-12-30
Line 45 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 46 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 47 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 49 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 50 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
...and more
BUG START 6e81cfd
Locale-awareness for date parsing and formatting: (Thu Feb 10 01:06:22 2011 +0000)
BUG START 4da08b0
Remove two implementation classes that weren't generally useful: - The cache interface has only one implementation. Drop the interface; we can add it back later if necessary. - The DefaultTypeAdapters class contains one member class. Just make that a top-level class. (Mon Nov 21 06:23:42 2011 +0000)
BUG START 441fa98
Simplified access of getSimpleName (#1042) (Tue Mar 21 02:55:52 2017 +0530)
BUG START b8f616c
Migrate DefaultDateTypeAdapter to streaming adapter (#1070) (Wed May 31 04:12:50 2017 +0300)
BUG START 3b3a60d
Use new instances of DateTypeAdapter and TimeTypeAdapter for each GSON; this guarantees that the TimeZone and Locale are what they should be (Mon Sep 26 21:44:08 2011 +0000)
BUG START 51a9596
Make Dates test slightly more robust to time of day issues. The test still fails outside of PST when run as a part of a larger suite because GSON captures a static snapshot of the system time zone at GSON-creation time. (Mon Sep 12 06:02:48 2011 +0000)
BUG START 3a38705
Tests to demonstrate that GSON 2 fixes some user-reported bugs. (Sun Oct 2 15:18:12 2011 +0000)
BUG START 15fa109
Fixed serializers and deserializers for java.sql Date and Time to ensure that Date does't serialize time, and time does't serialize the date portion. (Fri Dec 4 18:15:00 2009 +0000)
BUG START bcd52a1
Added ISO8601 complete support for date deserialization (Mon Nov 23 01:11:41 2015 -0500)
FIX 855f049
Fix a small typo (#1183)
2017-10-31
Line 269 in gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
BUG START bcd52a1
Added ISO8601 complete support for date deserialization (Mon Nov 23 01:11:41 2015 -0500)
FIX 6c05ced
Replaced oracle JDK 7 with openJDK 7 to fix broken build. (#1184)
2017-10-31
Line 4 in .travis.yml
BUG START cd38056
Add Travis CI build. (Wed Jun 17 22:10:06 2015 -0400)
FIX d9249e9
Fix README.md grammatical error (#1175)
2017-10-19
Line 8 in README.md
Line 10 in README.md
Line 34 in README.md
Line 36 in README.md
BUG START 05515ad
README: Update old Google Sites links to GitHub (Thu Nov 26 12:22:42 2015 +0200)
BUG START 62b9428
Create README.md (Thu Mar 19 13:33:05 2015 -0700)
BUG START fad12f8
fixed group link (Thu Mar 19 13:37:44 2015 -0700)
FIX 7a9fd59
Fixed DefaultDateTypeAdapter nullability issue and JSON primitives contract (#1100)
2017-09-18
Line 95 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
Line 96 in gson/src/main/java/com/google/gson/DefaultDateTypeAdapter.java
BUG START b8f616c
Migrate DefaultDateTypeAdapter to streaming adapter (#1070) (Wed May 31 04:12:50 2017 +0300)
BUG START 4da08b0
Remove two implementation classes that weren't generally useful: - The cache interface has only one implementation. Drop the interface; we can add it back later if necessary. - The DefaultTypeAdapters class contains one member class. Just make that a top-level class. (Mon Nov 21 06:23:42 2011 +0000)
FIX 68cf8fd
fix typo in ConstructorConstructor exception
2017-08-03
Line 227 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX 03a72e7
Fix StackOverflowError on resolving types with TypeVariable recursion (#1128)
2017-08-01
Line 28 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 29 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 30 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 31 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 32 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
...and more
BUG START 883ce46
Second half of adopting Guice's types code. (Fri Dec 3 18:12:26 2010 +0000)
BUG START d1ddab2
Swap out GSON's type mechanics with the Type resolution code from Guice. (Fri Dec 3 08:07:13 2010 +0000)
FIX ee691fb
fix javaDoc (#1122)
2017-07-21
Line 139 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 141 in gson/src/main/java/com/google/gson/FieldAttributes.java
BUG START e3af076
Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. (Sat Jan 9 22:43:27 2010 +0000)
FIX 1c09b3f
Fix well formed exception (#1105)
2017-06-23
Line 232 in extras/src/main/java/com/google/gson/typeadapters/UtcDateTypeAdapter.java
Line 25 in extras/src/test/java/com/google/gson/typeadapters/PostConstructAdapterFactoryTest.java
Line 53 in extras/src/test/java/com/google/gson/typeadapters/PostConstructAdapterFactoryTest.java
Line 56 in extras/src/test/java/com/google/gson/typeadapters/PostConstructAdapterFactoryTest.java
BUG START 0e3708b
updated UTC type adapter to support JDK 1.6 using Jackson ISO8601 parsing util (Fri Dec 5 07:41:08 2014 +0000)
BUG START 74e3711
Avoid NPE in PostConstructAdapterFactory (#1103) (Tue Jun 20 04:04:19 2017 +0300)
FIX a300148
Fix StackOverflowError on resolving recursive types by collapsing chains of type bounds (#1075)
2017-05-31
Line 78 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 87 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
BUG START d1ddab2
Swap out GSON's type mechanics with the Type resolution code from Guice. (Fri Dec 3 08:07:13 2010 +0000)
FIX 9a24219
negative zero test and fix (#1069)
2017-04-19
Line 731 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START b3b9197
Change number parsing to use one big loop. This changes it to return JsonToken.STRING for very long (>8k digits) numbers. (Sun Sep 2 20:12:19 2012 +0000)
FIX 92b52d2
Performance fix to avoid reflection-based initialization of null key surrogate
2017-04-13
Line 112 in gson/src/main/java/com/google/gson/Gson.java
BUG START c561184
Gson synchronized map replaced with concurrent hash map (Sat Mar 5 00:28:25 2016 +0300)
FIX 3fdedd4
UserGuide formatting fix (#1045)
2017-03-21
Line 1 in UserGuide.md
Line 8 in UserGuide.md
Line 9 in UserGuide.md
Line 10 in UserGuide.md
Line 11 in UserGuide.md
...and more
BUG START 594cb33
Fixed ToC (Tue Nov 24 13:57:20 2015 -0800)
BUG START f642395
added maven instructions (Tue Nov 24 17:55:40 2015 -0800)
BUG START 883fbd0
Added language annotations to code blocks. (Fri Nov 27 18:33:31 2015 -0500)
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
FIX 3063136
Fix headers format in the README.md (#1041)
2017-03-20
Line 12 in README.md
Line 19 in README.md
Line 23 in README.md
Line 31 in README.md
Line 35 in README.md
BUG START 0ef3659
Minor readability edit (Wed Feb 24 19:50:07 2016 +0100)
FIX 9e6f2ba
Fix ArrayIndexOutOfBoundsException when skipping a value with JsonTreeReader #1013 (#1014)
2017-02-16
Line 262 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
Line 264 in gson/src/main/java/com/google/gson/internal/bind/JsonTreeReader.java
BUG START c2fae85
Implement JSON Path for JsonTreeReader. (Fri Jun 10 00:08:33 2016 -0400)
FIX 614e735
Fixed typo
2017-01-22
Line 76 in CHANGELOG.md
BUG START 7c65a22
Update changelog for Gson 2.6. (Thu Feb 11 12:15:15 2016 -0500)
FIX 791236a
Fixed https://github.com/google/gson/issues/958
2016-11-14
Line 65 in UserGuide.md
Line 658 in UserGuide.md
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
FIX fca867d
Fix GitHub Diff link.
2016-10-26
Line 5 in CHANGELOG.md
BUG START 512d7b8
Changelog for Gson 2.8. (Wed Oct 26 23:01:07 2016 -0700)
FIX d4a9eb4
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
Line 100 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 111 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 114 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 118 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
BUG START 9ad3358
Document RuntimeTypeAdapter (Mon Jun 6 05:40:13 2011 +0000)
BUG START edaf59e
Fix RuntimeTypeAdapterFactory javadoc (Fri Feb 19 16:14:55 2016 +0200)
FIX 966de9e
fixed throwing RuntimeException instead of JsonIOException
2016-04-15
Line 682 in gson/src/main/java/com/google/gson/Gson.java
BUG START b7cbfc5
Fixed Issue 141 by adding new APIs for writing out JSON string representation for JsonElements. (Fri Aug 7 20:58:41 2009 +0000)
FIX 9c4f352
minor javadoc fix ... @code block not treated as html
2016-04-08
Line 431 in gson/src/main/java/com/google/gson/Gson.java
Line 432 in gson/src/main/java/com/google/gson/Gson.java
Line 433 in gson/src/main/java/com/google/gson/Gson.java
BUG START 83e5a49
Renamed Gson.getNextAdapter to getDelegateAdapter. Deleted testParameterizedMapSubclassDeserialization which we decided to not fix. Added simple tests for getDelegateAdapter (Thu Apr 12 18:49:27 2012 +0000)
FIX 9341460
Fixed unbound range bug issue# 819
2016-03-30
Line 108 in pom.xml
BUG START 42276de
Added JDK 8 doclint exclusion section (Fri Feb 26 18:13:43 2016 -0800)
FIX 0dfa28a
previous mvn release:prepare failed but updated GitHub anyway. Fixing that.
2016-02-26
Line 7 in gson/pom.xml
Line 14 in pom.xml
BUG START 607bcaa
[maven-release-plugin] prepare for next development iteration (Fri Feb 26 18:14:54 2016 -0800)
FIX c731abb
Fixed a regression in Gson 2.6 where Gson caused NPE if the TypeAdapterFactory.create() returned null.
2016-02-25
Line 54 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
Line 67 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
Line 68 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
BUG START 117d8ea
Add TypeAdapterFactory support to @JsonAdapter. (Mon Aug 4 16:58:41 2014 +0000)
BUG START 23e2916
Make TypeAdapters created by @JsonAdapter null-safe (Mon Jan 18 16:41:07 2016 +0100)
FIX edaf59e
Fix RuntimeTypeAdapterFactory javadoc
2016-02-19
Line 97 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 100 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 101 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
Line 118 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
BUG START 9ad3358
Document RuntimeTypeAdapter (Mon Jun 6 05:40:13 2011 +0000)
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
FIX aa209fa
Fix some typos in gson comments.
2016-02-15
Line 71 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 81 in gson/src/main/java/com/google/gson/Gson.java
Line 306 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 29 in gson/src/test/java/com/google/gson/ParameterizedTypeTest.java
Line 28 in gson/src/test/java/com/google/gson/functional/SerializedNameTest.java
BUG START c8bd121
Renamed $Preconditions to $Gson$Preconditions and $Types to $Gson$Types. Marked the two private classes in $Types as final. (Wed Apr 6 00:26:57 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 8fd4072
fixed javadocs (Fri Jun 3 19:01:08 2011 +0000)
BUG START 839b0c2
Refactored exclusion strategies so that they can easily be exposed as part of the public API. (Wed Oct 7 09:23:14 2009 +0000)
BUG START 109915d
Implemented support for multiple values for SerializedName annotation. (Sat Oct 3 02:01:16 2015 -0700)
FIX bddc1a9
Fixed code style to remove explicit casting op.
2016-02-14
Line 55 in examples/android-proguard-example/src/com/google/gson/examples/android/model/LineItem.java
BUG START a858078
Invoking Gson toJson and fromJson with-in the Android application. Gson.fromJson does not currently work in this application with proguard enabled: The reason seems to be that Cart's field List<LineItem> gets rewritten as raw List type. (Sat Jul 23 01:08:34 2011 +0000)
FIX 61f58ba
fix typo in JsonArray docs
2016-01-12
Line 165 in gson/src/main/java/com/google/gson/JsonArray.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 137100e
Cleanups and formatting fixes
2015-11-27
Line 6 in ReleaseProcess.md
Line 8 in ReleaseProcess.md
Line 9 in ReleaseProcess.md
Line 13 in ReleaseProcess.md
Line 14 in ReleaseProcess.md
...and more
BUG START 53d5957
updated Javadocs instructions (Tue Nov 24 11:38:54 2015 -0800)
BUG START 59b7de7
copied over release process from https://sites.google.com/site/gson/release-process (Mon Nov 23 19:27:37 2015 -0800)
BUG START 3a56011
Update ReleaseProcess.md (Tue Nov 24 11:26:30 2015 -0800)
FIX b4ca41a
Docs fixes: markdown, links, formatting.
2015-11-27
Line 41 in UserGuide.md
Line 45 in UserGuide.md
Line 46 in UserGuide.md
Line 47 in UserGuide.md
Line 48 in UserGuide.md
...and more
BUG START f642395
added maven instructions (Tue Nov 24 17:55:40 2015 -0800)
BUG START 14e53cf
Added code formatting; removed HTML tags. (Fri Nov 27 15:45:21 2015 -0500)
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
FIX 594cb33
Fixed ToC
2015-11-24
Line 3 in UserGuide.md
Line 4 in UserGuide.md
Line 5 in UserGuide.md
Line 6 in UserGuide.md
Line 7 in UserGuide.md
...and more
BUG START 4e1c352
Imported User Guide from Google Sites (Tue Nov 24 13:46:45 2015 -0800)
FIX da4334b
fixed typos
2015-11-05
Line 32 in gson/src/test/java/com/google/gson/functional/JavaUtilConcurrentLocksTest.java
BUG START 7821b73
Added support for AtomicInteger, AtomicBoolean, AtomicLong and AtomicIntegerArray. (Thu Nov 5 10:45:23 2015 -0800)
FIX 7d1973e
Fix type hierarchy adapters to do a runtime check.
2015-10-21
Line 37 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 38 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 39 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 40 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 41 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
...and more
BUG START 82f18a2
Implemented code review comments from r1090 (Fri Dec 23 15:52:10 2011 +0000)
BUG START bd937fe
A type adapter for Class that throws an UnsupportedOperationException. (Thu Dec 22 22:31:43 2011 +0000)
BUG START b6a625f
fixed issue 469 by adding a TypeAdapterFactory for throwables that ignores cause if it is self-referencing (Sun Nov 16 22:25:23 2014 +0000)
BUG START 26ab404
Cleanup names for TypeAdapters. (Fri Dec 2 22:57:30 2011 +0000)
BUG START c71e61c
Converted EnumTypeAdapter to new style. Got rid of default Hierarchy Serializer/Deserializers from DefaultTypeAdapters. Got rid of methods for gettting default serializers/deserializers/instance creators. Instead we reuse the static final instances. Fixed warnings in TypeAdapters where a parameterized type T was hiding the parameterized T in methods. Removed support to unwrap single element array of enums into enum values. Also removed the test that verifies this behavior. (Fri Sep 16 05:40:05 2011 +0000)
BUG START 89c1845
Ensure date with pattern is not override with the "default" date type adapter when a custom JsonSerializer/JsonDeserializer is registered. (Wed Aug 18 23:58:52 2010 +0000)
BUG START d7fbac0
Rename TypeAdapter.Factory to TypeAdapterFactory. (Fri Dec 23 18:27:13 2011 +0000)
BUG START ea9c023
Converted InetAddress type adapter to new style. (Fri Sep 9 04:02:12 2011 +0000)
FIX 3b1671d
Fix javadoc of SerializedName
2015-10-04
Line 84 in gson/src/main/java/com/google/gson/annotations/SerializedName.java
Line 85 in gson/src/main/java/com/google/gson/annotations/SerializedName.java
BUG START 109915d
Implemented support for multiple values for SerializedName annotation. (Sat Oct 3 02:01:16 2015 -0700)
FIX 4a57355
fixed pom and .gitignore
2015-10-03
Line 5 in .gitignore
Line 8 in pom.xml
Line 62 in pom.xml
BUG START e914de0
Add gitignore for Maven, Eclipse, IDEA, and OSX files. (Thu Jun 18 10:32:15 2015 -0400)
BUG START 157b232
Created top-level pom to allow maven release to work (Sat Oct 3 17:25:20 2015 -0700)
FIX 1e90044
Fixed javadoc for JsonWriter as reported in https://github.com/google/gson/issues/623
2015-09-26
Line 80 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX 3daf585
Implemented equals and hashcode for LazilyParsedNumber to fix https://github.com/google/gson/issues/627
2015-09-26
Line 1 in gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java
Line 2 in gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java
Line 3 in gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java
Line 4 in gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java
Line 5 in gson/src/main/java/com/google/gson/internal/LazilyParsedNumber.java
...and more
BUG START e450822
Added test to use BigDecimal to parse number when requesting it as a long. (Mon May 13 20:37:33 2013 +0000)
BUG START 8246351
Parsing numbers lazily as a performance enhancement. This avoids needing to parse number if the equivalent object field doesn't exist. It also avoids the performance penalty of trying to parse it eagerly as a big decimal, float etc. (Thu Apr 28 21:57:29 2011 +0000)
BUG START 1a4f690
Regretfully enable serialization for StringMap and LazilyParsedNumber. (Wed Aug 15 14:58:26 2012 +0000)
BUG START 0bcd1b3
Revised Gson to refuse to deserialize floating point numbers into integer types. This is probably a break from the past: previous versions of Gson allowed truncating a floating point into a long or int. However, it wasn't consistent in this behavior. It disallowed converting a BigDecimal value into BigInteger, int or long. Refusing to deserialize such values is aligned with fail-fast approach of uncovering bugs. (Wed May 4 23:26:22 2011 +0000)
BUG START d70fb90
Added methods to convert to JsonElement in TypeAdapter. Using lenient mode while working with Gson. Handling nulls while invoking legacy Gson type adapters. (Wed Aug 3 02:40:18 2011 +0000)
FIX 93605e7
Changelog fixes.
2015-09-26
Line 12 in CHANGELOG.md
Line 16 in CHANGELOG.md
Line 19 in CHANGELOG.md
Line 20 in CHANGELOG.md
BUG START 40ba055
Add a draft of a changelog. (Sat Sep 26 19:43:55 2015 -0400)
FIX 1867457
fix #680 - make RuntimeTypeAdapterFactory null-safe
2015-08-05
Line 238 in extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
FIX d8c12a7
Fixed accidental duplication of null elements
2015-07-23
Line 58 in gson/src/main/java/com/google/gson/JsonArray.java
Line 59 in gson/src/main/java/com/google/gson/JsonArray.java
Line 60 in gson/src/main/java/com/google/gson/JsonArray.java
Line 61 in gson/src/main/java/com/google/gson/JsonArray.java
Line 70 in gson/src/main/java/com/google/gson/JsonArray.java
...and more
BUG START 6960ebc
Updated JsonArray to support adding primitives directly via an overloaded "add(...)" method rather than having to always do "add(new JsonPrimitive(...))" (Thu Jul 23 20:44:04 2015 -0700)
FIX 4575416
Replace localhost lookup with static IP to fix test.
2015-07-20
Line 38 in gson/src/test/java/com/google/gson/DefaultInetAddressTypeAdapterTest.java
Line 39 in gson/src/test/java/com/google/gson/DefaultInetAddressTypeAdapterTest.java
Line 40 in gson/src/test/java/com/google/gson/DefaultInetAddressTypeAdapterTest.java
Line 42 in gson/src/test/java/com/google/gson/DefaultInetAddressTypeAdapterTest.java
Line 43 in gson/src/test/java/com/google/gson/DefaultInetAddressTypeAdapterTest.java
BUG START 1e2fbd8
Adding default type adapter for InetAddress. (Mon Jan 10 23:03:48 2011 +0000)
FIX fad12f8
fixed group link
2015-03-19
Line 23 in README.md
BUG START 62b9428
Create README.md (Thu Mar 19 13:33:05 2015 -0700)
FIX 1fb33e4
fixed links
2015-03-19
Line 15 in README.md
Line 18 in README.md
Line 19 in README.md
Line 20 in README.md
Line 21 in README.md
...and more
BUG START 62b9428
Create README.md (Thu Mar 19 13:33:05 2015 -0700)
FIX 7d96ce8
fixed tests to take care of stackTrace element appearing sometimes
2014-12-10
Line 27 in gson/src/test/java/com/google/gson/functional/ThrowableFunctionalTest.java
Line 38 in gson/src/test/java/com/google/gson/functional/ThrowableFunctionalTest.java
BUG START 8d5a413
added tests for Throwable. Revised ReflectiveTypeAdapterFactory to ignore self-referencing fields. (Sun Nov 16 22:55:18 2014 +0000)
FIX 1d9e86e
fixed extras build
2014-12-04
Line 12 in extras/pom.xml
Line 43 in extras/pom.xml
Line 68 in extras/pom.xml
Line 89 in extras/pom.xml
Line 98 in extras/pom.xml
...and more
BUG START 78327b9
initial checkin for the extras project (Fri May 13 18:30:20 2011 +0000)
BUG START 42e35e9
updated oss-parent version to 7 in gson-extras pom. fixed some eclipse warnings. (Wed Aug 1 20:57:51 2012 +0000)
BUG START 982c893
updated extras pom to latest plugin versions. updated organization names for Jesse and Inder. (Wed Aug 1 20:54:37 2012 +0000)
BUG START 538b7ca
Updated various Maven plugins to their latest released versions. (Sun Dec 4 10:37:16 2011 +0000)
BUG START 6cca23c
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction. (Sun Jan 1 13:42:44 2012 +0000)
FIX b6a625f
fixed issue 469 by adding a TypeAdapterFactory for throwables that ignores cause if it is self-referencing
2014-11-16
Line 19 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 749 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 750 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 751 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 752 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
...and more
BUG START 3196450
Updated SuppressWarnings annotations to Eclipse 3.6/3.7 which is unfortunately incompatible with Eclipse 3.5 (rawtypes vs unchecked) This CL eliminates all eclipse warnings. (Thu Oct 20 21:32:46 2011 +0000)
BUG START 26ab404
Cleanup names for TypeAdapters. (Fri Dec 2 22:57:30 2011 +0000)
BUG START c71e61c
Converted EnumTypeAdapter to new style. Got rid of default Hierarchy Serializer/Deserializers from DefaultTypeAdapters. Got rid of methods for gettting default serializers/deserializers/instance creators. Instead we reuse the static final instances. Fixed warnings in TypeAdapters where a parameterized type T was hiding the parameterized T in methods. Removed support to unwrap single element array of enums into enum values. Also removed the test that verifies this behavior. (Fri Sep 16 05:40:05 2011 +0000)
BUG START c01fc5c
Fix tests broken by r1078. (Fri Dec 16 14:12:34 2011 +0000)
BUG START d7fbac0
Rename TypeAdapter.Factory to TypeAdapterFactory. (Fri Dec 23 18:27:13 2011 +0000)
BUG START dd86d63
Use inner classes for BigDecimal and BigInteger type adapters (Sat Feb 11 20:14:23 2012 +0000)
FIX 84e3442
Fixed issue 582
2014-11-12
Line 134 in gson/pom.xml
BUG START 6b39f52
Added OSGi Bundle manifest headers to enable use of Gson in OSGi environments. Fixes issue 120 (Tue May 5 23:31:43 2009 +0000)
FIX d6c8c1e
Fix bugs in getPath() with arrays of objects and arrays of arrays
2014-11-11
Line 51 in gson/src/test/java/com/google/gson/stream/JsonReaderPathTest.java
Line 53 in gson/src/test/java/com/google/gson/stream/JsonReaderPathTest.java
Line 55 in gson/src/test/java/com/google/gson/stream/JsonReaderPathTest.java
Line 57 in gson/src/test/java/com/google/gson/stream/JsonReaderPathTest.java
BUG START fbc7e69
Implement JsonPath in JsonReader. (Thu Jul 31 05:17:54 2014 +0000)
FIX 9bbdcac
Fixed issue code.google.com/p/google-gson/issues/detail?id=353 by adding remove and contains methods in JsonArray
2014-07-02
Line 19 in gson/src/test/java/com/google/gson/JsonArrayTest.java
BUG START 3d006c9
equals & hashCode for subclasses of JsonElement. (Tue Feb 15 00:14:20 2011 +0000)
FIX c6752fc
Fix inverted docs in ExclusionStrategy.
2014-06-04
Line 22 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
Line 24 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
BUG START dc5922e
Addresses comments in r481 (except for the interface change....leaving FieldAttributes as a class). (Thu Oct 8 20:51:40 2009 +0000)
BUG START e37add7
Implemented some code review comments from r482 (Fri Oct 9 01:35:45 2009 +0000)
FIX 14ba59f
code review fixes. Moved getFirstArgument() method from $Gson$Types to GsonTypesTest.
2014-05-19
Line 394 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 395 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 396 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 397 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 398 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
...and more
BUG START f29d5bc
Create a LinkedTreeMap based on the LinkedHashTreeMap; however, removed all the hashing from it as resorted to a single tree. The insertion order is still preserved. (Fri May 3 16:11:16 2013 +0000)
BUG START 93e3890
Draft of LinkedTreeMap. Its ordered like a LinkedHashMap but it doesn't do any hashing for DoS resistance. (Mon Sep 10 20:04:38 2012 +0000)
BUG START 7c97ac2
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>. (Sat Mar 8 20:08:13 2014 +0000)
BUG START aceadae
Add a hashing layer to LinkedTreeMap. Instead of having 1 root node, the class now has several root nodes, one for each hash bucket in a hash table. (Mon Sep 17 00:19:44 2012 +0000)
FIX b373c20
Fixed issue 552 by documenting when fromJson returns null.
2014-03-29
Line 699 in gson/src/main/java/com/google/gson/Gson.java
Line 722 in gson/src/main/java/com/google/gson/Gson.java
Line 749 in gson/src/main/java/com/google/gson/Gson.java
Line 775 in gson/src/main/java/com/google/gson/Gson.java
Line 802 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 747e3c3
Support mixed streaming and databinding with new APIs. (Thu Sep 2 00:15:23 2010 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX c53e255
Fixed typo as mentioned in issue 565
2014-03-26
Line 177 in gson/src/main/java/com/google/gson/Gson.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 6e8d3cd
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
Line 910 in gson/src/main/java/com/google/gson/Gson.java
Line 913 in gson/src/main/java/com/google/gson/Gson.java
Line 916 in gson/src/main/java/com/google/gson/Gson.java
BUG START e280ffd
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. (Sun Mar 9 08:36:24 2014 +0000)
FIX e280ffd
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
Line 900 in gson/src/main/java/com/google/gson/Gson.java
Line 901 in gson/src/main/java/com/google/gson/Gson.java
Line 902 in gson/src/main/java/com/google/gson/Gson.java
Line 46 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
Line 50 in gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java
...and more
BUG START bf549f0
Added support for JsonAdapter annotation on fields (Sun Mar 9 07:28:04 2014 +0000)
BUG START 26ab404
Cleanup names for TypeAdapters. (Fri Dec 2 22:57:30 2011 +0000)
BUG START b0531e1
Ensure "excluder" is added prior to user defined type adapters/factories. - Added test expose bad behaviour. (Thu Dec 20 19:41:33 2012 +0000)
BUG START 1794182
Commit to factories as the mechanism to lookup type adapters. This uses factories for type hierarchy adapters. We keep a separate list of factories for tree-style adapters registered with registerTypeHierarchyAdapter to guarantee that these come after the non-hierarchy adapters. (Wed Nov 23 06:16:55 2011 +0000)
FIX c3d0f20
Fixed a bug where an inner static class was incorrectly marked as non-static while creating parameterized types.
2014-03-08
Line 443 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
Line 444 in gson/src/main/java/com/google/gson/internal/$Gson$Types.java
BUG START d1ddab2
Swap out GSON's type mechanics with the Type resolution code from Guice. (Fri Dec 3 08:07:13 2010 +0000)
FIX 1840466
Fix a nasty bug where elements in LinkedHashTreeMap could be dropped.
2013-05-14
Line 41 in gson/src/test/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 42 in gson/src/test/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 570 in gson/src/test/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 571 in gson/src/test/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 572 in gson/src/test/java/com/google/gson/internal/LinkedHashTreeMap.java
...and more
BUG START 2d5cab1
Fix hashing in LinkedHashTreeMap, but it still does not work :( (Mon May 13 20:40:07 2013 +0000)
BUG START af6aa5f
Use the LinkedHashTreeMap instead of LinkedTreeMap and delete the LinkedTreeMap version. (Thu Apr 4 21:31:23 2013 +0000)
BUG START a0493b9
New code that can split an AVL tree into two AVL trees. (Sat Sep 15 06:13:33 2012 +0000)
BUG START 2fef837
Optimizations and bug fixes for LinkedHashTreeMap. (Mon Sep 17 03:30:20 2012 +0000)
BUG START b88e0e9
Test to expose edge doubling and rehashing bug in LinkedHashTreeMap. (Fri May 3 15:13:30 2013 +0000)
BUG START 8834343
Moving broken class to "test" package for now and disabling broken test. (Mon May 13 21:01:33 2013 +0000)
FIX 2d5cab1
Fix hashing in LinkedHashTreeMap, but it still does not work :(
2013-05-13
Line 567 in gson/src/main/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 570 in gson/src/main/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 587 in gson/src/main/java/com/google/gson/internal/LinkedHashTreeMap.java
Line 602 in gson/src/main/java/com/google/gson/internal/LinkedHashTreeMap.java
BUG START a0493b9
New code that can split an AVL tree into two AVL trees. (Sat Sep 15 06:13:33 2012 +0000)
FIX 7d53113
fixed https://code.google.com/p/google-gson/issues/detail?id=509 by adding construction for EnumSet
2013-04-04
Line 19 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 20 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 21 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 127 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
Line 31 in gson/src/test/java/com/google/gson/functional/EnumTest.java
...and more
BUG START 214234e
Support @SerializedName on annotations. (Fri Dec 16 05:32:50 2011 +0000)
BUG START 1a4f690
Regretfully enable serialization for StringMap and LazilyParsedNumber. (Wed Aug 15 14:58:26 2012 +0000)
BUG START 21ddfc9
Show default serialization and deserialization works with subclasses of an enum type. (Mon Apr 4 19:19:46 2011 +0000)
BUG START 14f16e2
Adding Red-Black Tree implementation and tying it into the Gson bindings. (Thu Oct 11 03:15:49 2012 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX 6dc6b4b
Fix object leak from ThreadLocal.
2013-01-14
Line 349 in gson/src/main/java/com/google/gson/Gson.java
Line 350 in gson/src/main/java/com/google/gson/Gson.java
BUG START 7e76014
Smash together MiniGson and Gson. This changes Gson to be the MiniGson rather than delegating to the MiniGson. It means that the MiniGson objects passed into streaming type adapters are now fully-capable 'Gson' objects. (Sun Nov 20 15:23:08 2011 +0000)
FIX 22c835f
Fix compile warnings
2012-10-23
Line 798 in gson/src/main/java/com/google/gson/Gson.java
Line 800 in gson/src/main/java/com/google/gson/Gson.java
Line 894 in gson/src/main/java/com/google/gson/Gson.java
Line 896 in gson/src/main/java/com/google/gson/Gson.java
BUG START c25278b
Created an alpha package that holds experimental feature. Added support for JsonPostDeserializer that allows you to invoke postDeserialize methods on an Gson deserialized object. (Thu Oct 11 03:20:36 2012 +0000)
BUG START fd4fbe4
Added support for collections, maps, and arbitrary depth of type adapters for Intercept annotation. Added more tests for the features. (Thu Oct 18 02:37:43 2012 +0000)
FIX 2fef837
Optimizations and bug fixes for LinkedHashTreeMap.
2012-09-17
Line 24 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 41 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 61 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 73 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 87 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
...and more
BUG START aceadae
Add a hashing layer to LinkedTreeMap. Instead of having 1 root node, the class now has several root nodes, one for each hash bucket in a hash table. (Mon Sep 17 00:19:44 2012 +0000)
BUG START 93e3890
Draft of LinkedTreeMap. Its ordered like a LinkedHashMap but it doesn't do any hashing for DoS resistance. (Mon Sep 10 20:04:38 2012 +0000)
BUG START a0493b9
New code that can split an AVL tree into two AVL trees. (Sat Sep 15 06:13:33 2012 +0000)
BUG START a6ab854
Fix a bug where we were unlinking nodes that shouldn't have been unlinked. (Wed Sep 12 04:41:58 2012 +0000)
BUG START 01bd0d9
Tests for LinkedTreeMap with incompatible keys. (Wed Sep 12 05:06:48 2012 +0000)
FIX a6ab854
Fix a bug where we were unlinking nodes that shouldn't have been unlinked.
2012-09-12
Line 92 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 106 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 107 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 108 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
Line 109 in gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java
...and more
BUG START 93e3890
Draft of LinkedTreeMap. Its ordered like a LinkedHashMap but it doesn't do any hashing for DoS resistance. (Mon Sep 10 20:04:38 2012 +0000)
FIX 8df7209
Fix cut & paste issue in JsonToken Javadocs.
2012-09-02
Line 28 in gson/src/main/java/com/google/gson/stream/JsonToken.java
Line 29 in gson/src/main/java/com/google/gson/stream/JsonToken.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX 46b7363
Fix a bug where we weren't reading enough characters when a BOM was encountered.
2012-08-28
Line 21 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 37 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 46 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 54 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 66 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
...and more
BUG START b0a1729
More number parsing improvements. (Mon Aug 27 03:17:41 2012 +0000)
BUG START 7b75efd
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem. (Sat Feb 11 20:15:39 2012 +0000)
BUG START c7cb503
Restore fast skips. (Mon Aug 27 01:17:50 2012 +0000)
BUG START befcfd9
Skip a byte order mark (BOM) if it exists. http://code.google.com/p/android/issues/detail?id=18508 (Wed Jul 20 18:57:30 2011 +0000)
BUG START 8d5de31
Inline character unescaping. This saves ~10% on the READER_LONG benchmark. (Sun Dec 25 07:09:46 2011 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
BUG START c5c65ba
Add an experimental rewrite of JsonReader. (Sat Aug 25 04:31:56 2012 +0000)
BUG START dd9ae67
Test that skipValue is strict on unquoted strings. (Wed Dec 21 20:40:33 2011 +0000)
BUG START b96d2d9
Support non-execute prefixes. (Sun Aug 26 19:31:06 2012 +0000)
BUG START 13c1946
More tests that skipValue() is no less strict. (Wed Dec 21 21:43:55 2011 +0000)
BUG START 085856c
Don't leave the JsonReader in an invalid state if nextInt(), nextDouble() or nextLong() fails. We now save a reference to the string before we parse it, and keep that referenced value if parsing fails. (Sun Aug 26 22:06:57 2012 +0000)
BUG START 15e7819
Fix testStringEndingInSlash by fixing nextNonWhitespace to always return the character at buffer[pos-1]. (Thu Feb 16 22:49:53 2012 +0000)
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 4c2980e
Fix a bug in integer parsing. (Mon Aug 27 02:34:52 2012 +0000)
FIX 448063d
Fix a goof in number parsing.
2012-08-27
Line 651 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START 4c2980e
Fix a bug in integer parsing. (Mon Aug 27 02:34:52 2012 +0000)
FIX 4c2980e
Fix a bug in integer parsing.
2012-08-27
Line 650 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 429 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
BUG START 085856c
Don't leave the JsonReader in an invalid state if nextInt(), nextDouble() or nextLong() fails. We now save a reference to the string before we parse it, and keep that referenced value if parsing fails. (Sun Aug 26 22:06:57 2012 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX b96d2d9
Support non-execute prefixes.
2012-08-26
Line 19 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 20 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 24 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 26 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
Line 29 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 7b75efd
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem. (Sat Feb 11 20:15:39 2012 +0000)
BUG START c5c65ba
Add an experimental rewrite of JsonReader. (Sat Aug 25 04:31:56 2012 +0000)
BUG START 46b4346
Get JsonReader2 to the point that it's passing most tests. (Sun Aug 26 04:02:09 2012 +0000)
FIX 42e35e9
updated oss-parent version to 7 in gson-extras pom. fixed some eclipse warnings.
2012-08-01
Line 12 in extras/pom.xml
Line 39 in extras/src/main/java/com/google/gson/extras/examples/rawcollections/RawCollectionsExample.java
BUG START 3e324cc
Added an example of using raw collection for serialization and deserialization with Gson. (Fri May 27 18:33:03 2011 +0000)
BUG START 78327b9
initial checkin for the extras project (Fri May 13 18:30:20 2011 +0000)
FIX 582b0a0
Fixed issue 443 by relying on Streams.parse() to return a JsonNull on empty documents and throw a JsonParseException otherwise.
2012-06-30
Line 22 in gson/src/main/java/com/google/gson/JsonParser.java
Line 23 in gson/src/main/java/com/google/gson/JsonParser.java
Line 24 in gson/src/main/java/com/google/gson/JsonParser.java
Line 25 in gson/src/main/java/com/google/gson/JsonParser.java
Line 89 in gson/src/main/java/com/google/gson/JsonParser.java
...and more
BUG START 0127891
Added a new API method in JsonParser to allow reading of multiple JSON objects on a stream asynchronously. (Fri May 8 22:22:34 2009 +0000)
BUG START e79bcde
Using JsonNull.INSTANCE instead of JsonNull.createJsonNull() method (Wed May 25 16:55:57 2011 +0000)
BUG START 6e59e50
Refactored the Async parser interface out of JsonParser into a new class JsonParserAsync. Updated the JsonParser to detect Eof and return a null instead of throwing a ParseException. (Thu May 14 20:18:45 2009 +0000)
BUG START 2b1f3ee
Removed a bunch of unused code and unnecessary else statements. (Tue Sep 28 13:42:43 2010 +0000)
BUG START 1c5f513
Revert most of r677: Required strings to be quoted even in lenient mode. As far as Inderjeet and I can tell, this is consistent with Gson 1.5. (Wed Nov 24 23:22:13 2010 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX 83e5a49
Renamed Gson.getNextAdapter to getDelegateAdapter. Deleted testParameterizedMapSubclassDeserialization which we decided to not fix. Added simple tests for getDelegateAdapter
2012-04-12
Line 39 in gson/src/main/java/com/google/gson/Gson.java
Line 40 in gson/src/main/java/com/google/gson/Gson.java
Line 41 in gson/src/main/java/com/google/gson/Gson.java
Line 42 in gson/src/main/java/com/google/gson/Gson.java
Line 43 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 796a381
Kill GsonInternalAccess. Clients to this were all broken because nobody was ever assigning INSTANCE. (Sun Jan 1 12:42:20 2012 +0000)
BUG START 7e76014
Smash together MiniGson and Gson. This changes Gson to be the MiniGson rather than delegating to the MiniGson. It means that the MiniGson objects passed into streaming type adapters are now fully-capable 'Gson' objects. (Sun Nov 20 15:23:08 2011 +0000)
BUG START 6c78bf5
made toJson/fromJson/toJsonTree methods public in TypeAdapter. made Gson.getNextAdapter method public. (Sat Dec 31 08:52:59 2011 +0000)
BUG START 3b3a60d
Use new instances of DateTypeAdapter and TimeTypeAdapter for each GSON; this guarantees that the TimeZone and Locale are what they should be (Mon Sep 26 21:44:08 2011 +0000)
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
FIX 6d351fe
Fix a documentation typo.
2012-04-12
Line 327 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX 15e7819
Fix testStringEndingInSlash by fixing nextNonWhitespace to always return the character at buffer[pos-1].
2012-02-16
Line 898 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 899 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1095 in gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START aa52435
Apply an ugly optimization to save 5% on pretty printed JSON documents. This uses locals instead of fields in an inner loop to save field reads and writes. (Wed Dec 14 05:26:29 2011 +0000)
BUG START 7b75efd
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem. (Sat Feb 11 20:15:39 2012 +0000)
FIX 2c8bec2
Permit multiple top-level values in JsonWriter in lenient mode. Also fix some cases where we don't throw the right thing on a closed JsonWriter.
2012-02-12
Line 317 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 467 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 602 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 603 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 604 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX 7b75efd
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem.
2012-02-11
Line 1125 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1302 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1303 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1304 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1305 in gson/src/main/java/com/google/gson/stream/JsonReader.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START 852cd72
Don't allocate a whole bunch of objects each time we deserialize a map key. This saves 20% on bug 375's benchmark. (Sat Nov 26 15:36:08 2011 +0000)
BUG START befcfd9
Skip a byte order mark (BOM) if it exists. http://code.google.com/p/android/issues/detail?id=18508 (Wed Jul 20 18:57:30 2011 +0000)
FIX f24da51
Fix dangling sentence.
2011-12-16
Line 106 in gson/src/main/java/com/google/gson/TypeAdapter.java
BUG START f602bce
Nice documentation for TypeAdapter. (Sat Dec 3 19:46:25 2011 +0000)
FIX c01fc5c
Fix tests broken by r1078.
2011-12-16
Line 680 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 682 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 687 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 688 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
BUG START c71e61c
Converted EnumTypeAdapter to new style. Got rid of default Hierarchy Serializer/Deserializers from DefaultTypeAdapters. Got rid of methods for gettting default serializers/deserializers/instance creators. Instead we reuse the static final instances. Fixed warnings in TypeAdapters where a parameterized type T was hiding the parameterized T in methods. Removed support to unwrap single element array of enums into enum values. Also removed the test that verifies this behavior. (Fri Sep 16 05:40:05 2011 +0000)
FIX 2ef7716
Fix a broken Javadoc link to this.
2011-12-16
Line 169 in gson/src/main/java/com/google/gson/TypeAdapter.java
BUG START 91be944
Added a new API method nullSafe() in TypeAdapter that can be used to avoid boilerplate handling of nulls in a type adapter. (Mon Dec 5 19:50:49 2011 +0000)
FIX bb92447
Retain annotations when using proguard + gson. From patch on issue 358.
2011-12-16
Line 8 in examples/android-proguard-example/proguard.cfg
Line 9 in examples/android-proguard-example/proguard.cfg
Line 10 in examples/android-proguard-example/proguard.cfg
Line 11 in examples/android-proguard-example/proguard.cfg
BUG START ea4cfcd
initial cut at an example Android application that uses Proguard with Gson (Fri Jul 22 20:55:37 2011 +0000)
FIX d891661
Apply locale fix for date type adapter test.
2011-12-16
Line 130 in gson/src/test/java/com/google/gson/DefaultDateTypeAdapterTest.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX eb2230c
Fix nullSafe() to not infinitely recurse on non-null input.
2011-12-06
Line 182 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 190 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 198 in gson/src/main/java/com/google/gson/TypeAdapter.java
Line 171 in gson/src/test/java/com/google/gson/functional/StreamingTypeAdaptersTest.java
Line 177 in gson/src/test/java/com/google/gson/functional/StreamingTypeAdaptersTest.java
BUG START 91be944
Added a new API method nullSafe() in TypeAdapter that can be used to avoid boilerplate handling of nulls in a type adapter. (Mon Dec 5 19:50:49 2011 +0000)
BUG START 0b734e4
Incorporated code review comments from r1061. Made nullSafe() an instance method instead of a static method. Updated code javadoc to match Guava style. (Tue Dec 6 08:18:00 2011 +0000)
FIX e2e6727
Fix broken test in registering competing type hierarchy adapters.
2011-12-06
Line 544 in gson/src/main/java/com/google/gson/GsonBuilder.java
BUG START 1794182
Commit to factories as the mechanism to lookup type adapters. This uses factories for type hierarchy adapters. We keep a separate list of factories for tree-style adapters registered with registerTypeHierarchyAdapter to guarantee that these come after the non-hierarchy adapters. (Wed Nov 23 06:16:55 2011 +0000)
FIX d5ed071
Fix type adapter precedence so that last-registered wins (except for tree type hierarchy adapters, which were always last).
2011-12-06
Line 543 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 41 in gson/src/test/java/com/google/gson/functional/TypeAdapterPrecedenceTest.java
Line 42 in gson/src/test/java/com/google/gson/functional/TypeAdapterPrecedenceTest.java
Line 51 in gson/src/test/java/com/google/gson/functional/TypeAdapterPrecedenceTest.java
Line 52 in gson/src/test/java/com/google/gson/functional/TypeAdapterPrecedenceTest.java
...and more
BUG START 1794182
Commit to factories as the mechanism to lookup type adapters. This uses factories for type hierarchy adapters. We keep a separate list of factories for tree-style adapters registered with registerTypeHierarchyAdapter to guarantee that these come after the non-hierarchy adapters. (Wed Nov 23 06:16:55 2011 +0000)
BUG START 3cbe355
Test precedence of type hierarchy adapters. (Wed Nov 23 05:13:17 2011 +0000)
FIX 9a80d09
Fix a regression I introduced with the changes to type hierarchy registration. If the registered type was a raw type, we need to also match the parameterizations of that type.
2011-11-23
Line 73 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 74 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 76 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 77 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 455 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START 8aedbc8
Added a new GsonBuilder option to register a type adapter for a type hierarchy instead of a single type. Upgraded Gson version to 1.5 since a new API call is being added. (Mon Jun 21 23:26:06 2010 +0000)
BUG START 777e17c
No more system type adapters. (Sun Nov 20 18:03:46 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 1794182
Commit to factories as the mechanism to lookup type adapters. This uses factories for type hierarchy adapters. We keep a separate list of factories for tree-style adapters registered with registerTypeHierarchyAdapter to guarantee that these come after the non-hierarchy adapters. (Wed Nov 23 06:16:55 2011 +0000)
BUG START 46e65a7
Convert RuntimeTypeAdapter to a TypeAdapterFactory; this avoids the need for serializeDefault() (Wed Sep 28 19:14:46 2011 +0000)
FIX e952147
Fix typo: Paramterized was spelled wong.
2011-11-20
Line 36 in gson/src/test/java/com/google/gson/ParamterizedTypeFixtures.java
Line 21 in gson/src/test/java/com/google/gson/functional/ParameterizedTypesTest.java
Line 22 in gson/src/test/java/com/google/gson/functional/ParameterizedTypesTest.java
Line 23 in gson/src/test/java/com/google/gson/functional/ParameterizedTypesTest.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX a92cf39
Fix compile issues found during release.
2011-11-13
Line 686 in gson/src/main/java/com/google/gson/Gson.java
Line 783 in gson/src/main/java/com/google/gson/Gson.java
Line 42 in gson/src/main/java/com/google/gson/GsonToMiniGsonTypeAdapterFactory.java
BUG START cf15565
Don't round trip through strings (Fri Sep 30 07:24:07 2011 +0000)
BUG START de727d8
Delete dead code found by coverage (Sat Oct 1 02:04:48 2011 +0000)
BUG START de835d4
Roll back JsonSerializationContext and JsonDeserializationContext to their 1.7.2 API. (Sat Oct 1 00:58:25 2011 +0000)
FIX 3a38705
Tests to demonstrate that GSON 2 fixes some user-reported bugs.
2011-10-02
Line 33 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 35 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 36 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 37 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 460 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
BUG START 1da3ef9
Ensured that a custom handler is not visited during deserialization. Ensured that JsonTreeNavigator can handle null values as children of JsonObject. This is now possible since Gson exposes toJson(JsonElement) method to which the user can pass a JsonElement with null values. (Tue Oct 6 01:15:28 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START eb7b1e4
Test attempting (and failing) to reproduce issue 215. (Fri Aug 27 07:10:00 2010 +0000)
FIX 0166142
Fix broken example.
2011-10-01
Line 52 in gson/src/main/java/com/google/gson/JsonDeserializer.java
Line 52 in gson/src/main/java/com/google/gson/JsonSerializer.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 47a36fd
Fixed Eclipse warnings
2011-09-30
Line 46 in gson/src/main/java/com/google/gson/internal/bind/ArrayTypeAdapter.java
BUG START c6bef30
Array support. (Mon Jul 11 22:26:53 2011 +0000)
FIX 2541e65
Fixed com.google.gson.functional.VersioningTest.testIgnoreLaterVersionClassDeserialization by changing Gson behavior incompatibly (but more consistent). GSON 1.x applies different rules for versioning for classes vs fields. So, if you deserialize a JSON into a field that is supposed to be skipped, the field is set to null (or default value). However, if you deserialize it to a top-level class, a default instance is returned. GSON 2.x returns null for the top-level class.
2011-09-29
Line 91 in gson/src/test/java/com/google/gson/functional/VersioningTest.java
Line 92 in gson/src/test/java/com/google/gson/functional/VersioningTest.java
Line 93 in gson/src/test/java/com/google/gson/functional/VersioningTest.java
Line 94 in gson/src/test/java/com/google/gson/functional/VersioningTest.java
Line 95 in gson/src/test/java/com/google/gson/functional/VersioningTest.java
...and more
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 3f26144
Fix date adapters to work when run in any time zone.
2011-09-28
Line 262 in gson/src/main/java/com/google/gson/Gson.java
Line 263 in gson/src/main/java/com/google/gson/Gson.java
Line 32 in gson/src/main/java/com/google/gson/internal/bind/DateTypeAdapter.java
Line 32 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
Line 33 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java
...and more
BUG START 8217aca
Converted java.sql.Date type adapters to the new style. (Tue Sep 20 00:26:37 2011 +0000)
BUG START 915c5d4
Converted BitSetTypeAdapter to the new style. (Fri Sep 16 05:02:30 2011 +0000)
BUG START 3b3a60d
Use new instances of DateTypeAdapter and TimeTypeAdapter for each GSON; this guarantees that the TimeZone and Locale are what they should be (Mon Sep 26 21:44:08 2011 +0000)
BUG START c1bac6d
Converted Date type adapter to the new style. This was the last remaining old style default type adapter. (Sun Sep 25 21:51:28 2011 +0000)
BUG START 81854db
Converted java.sql.Timestamp type adapter to the new style. (Sun Sep 25 21:35:36 2011 +0000)
FIX cebda2b
Fixed MapTest.testInterfaceTypeMapWithSerializer. This test for relying on JsonElement.toString() to have same behavior as gson.toJson(JsonElement). However, gson.toJson() skips nulls by default whereas JsonElement.toString() does not.
2011-09-27
Line 399 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 400 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 406 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 444 in gson/src/test/java/com/google/gson/functional/MapTest.java
Line 448 in gson/src/test/java/com/google/gson/functional/MapTest.java
BUG START 2fb8c92
Use more specific type for map serialization if possible. (Mon Apr 4 23:13:31 2011 +0000)
FIX b2d5940
Implemented runtime type serialization for keys and values of a map. This fixes MoreSpecificTypeSerializationTest.testMapOfSubclassFields
2011-09-27
Line 30 in gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java
Line 31 in gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java
Line 32 in gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java
Line 33 in gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java
Line 34 in gson/src/main/java/com/google/gson/internal/bind/MapTypeAdapterFactory.java
...and more
BUG START a98d6ea
Fix the map type adapter to support array serialization natively. (Mon Sep 12 05:51:17 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX 2780a2a
Fixed eclipse warnings.
2011-09-16
Line 733 in gson/src/main/java/com/google/gson/Gson.java
Line 39 in gson/src/main/java/com/google/gson/JsonDeserializationContext.java
Line 60 in gson/src/main/java/com/google/gson/JsonDeserializationContext.java
Line 65 in gson/src/main/java/com/google/gson/JsonDeserializationContext.java
Line 161 in gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
BUG START 62675b7
Added serializeDefault and deserializeDefault methods in contexts that only invoke system type adapters on the top-level object. With this, the RuntimeTypeAdapterTest passes. (Fri Jul 1 21:29:20 2011 +0000)
BUG START 5d31558
eliminated maven compilation problems with JDK 5 (Wed May 25 16:13:36 2011 +0000)
BUG START 3aeb70e
Adapter for Object.class (Fri Sep 9 03:31:16 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX c71e61c
Converted EnumTypeAdapter to new style. Got rid of default Hierarchy Serializer/Deserializers from DefaultTypeAdapters. Got rid of methods for gettting default serializers/deserializers/instance creators. Instead we reuse the static final instances. Fixed warnings in TypeAdapters where a parameterized type T was hiding the parameterized T in methods. Removed support to unwrap single element array of enums into enum values. Also removed the test that verifies this behavior.
2011-09-16
Line 50 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 51 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 52 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 62 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 64 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START e57ef09
Add method to GsonBuilder to enable complex key serialization of maps. (Tue Mar 15 15:37:41 2011 +0000)
BUG START c5f1df1
MiniGSON prototype! (Mon Jul 11 16:46:52 2011 +0000)
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
BUG START d34fb91
Added tests for enum serialization and derserialization. (Tue Jan 20 00:52:54 2009 +0000)
BUG START c894fb6
Default support for BitSet. As well, provide more flexibility on getAsBoolean for a JsonPrimitive. (Thu Apr 14 02:42:47 2011 +0000)
BUG START e340801
Moved enum-related tests under EnumTest class. (Mon Mar 30 18:36:55 2009 +0000)
BUG START a98d6ea
Fix the map type adapter to support array serialization natively. (Mon Sep 12 05:51:17 2011 +0000)
BUG START f6a3329
Warning fixes. (Fri Nov 5 22:47:13 2010 +0000)
BUG START 6b2c275
Deleted Long, Float and Double serializers from legacy DefaultTypeAdapters. This stuff is not invoked anymore as the MiniGson takes care of it. (Fri Sep 16 04:06:33 2011 +0000)
BUG START 9db0c53
Adapt bytes (Fri Sep 9 04:39:29 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
BUG START 2b9f81e
Registering default type hierarchy adapters first and allow users to override them. This allows the default EnumTypeAdapter to be overridden for a specific hierachy adapter for Enum with anonymized sub-classes. (Wed Jan 19 23:28:28 2011 +0000)
BUG START 9196b23
Refactoring: Separated type handler maps into two types: one for system-specified handlers and one for user-specified. system-specified handlers are the ones that Gson comes with (DefaultTypeAdapters). (Fri Jun 24 21:52:59 2011 +0000)
BUG START aa06705
Restore support for long serialization policy. (Thu Aug 4 22:57:36 2011 +0000)
BUG START 2b1f3ee
Removed a bunch of unused code and unnecessary else statements. (Tue Sep 28 13:42:43 2010 +0000)
BUG START b489f4f
marked default type adapters as final classes (Fri Mar 11 22:20:39 2011 +0000)
BUG START 2cec661
Removing some unnecessary code. (Tue Jan 20 01:00:59 2009 +0000)
BUG START 911a92b
Removal of all unnecessary "Default" InstanceCreators. While refactoring the code, I found a bug that these InstanceCreators were being called when inside an "Array". This bug is fixed in this change. (Sat Dec 27 23:43:16 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START ea9c023
Converted InetAddress type adapter to new style. (Fri Sep 9 04:02:12 2011 +0000)
FIX b90b43e
A few minor fixes and one incompatible Java 1.6 API call.
2011-09-16
Line 129 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 23 in gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java
Line 157 in gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java
Line 183 in gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java
Line 196 in gson/src/main/java/com/google/gson/internal/bind/ReflectiveTypeAdapterFactory.java
...and more
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START fede584
Gson 2.0 converts JSON with type Object.class into something meaningful such as a Collection of primitives or Maps. Updated tests for the new behavior. Changed $Gson$Types.getCollectionElementType to handle wild-card sub-classes of collections and raw collections. (Fri Sep 9 06:23:17 2011 +0000)
BUG START f9976f4
Switched Short, URI, URL, UUID, StringBuilder and StringBuffer type adapters to new-style. (Fri Aug 26 02:33:54 2011 +0000)
BUG START 454f58a
Adding in instance creator to instantiate the concrete Collection or Map class if known, otherwise fallback to a default instance. (Tue Mar 29 16:57:28 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX a98d6ea
Fix the map type adapter to support array serialization natively.
2011-09-12
Line 173 in gson/src/main/java/com/google/gson/Gson.java
Line 174 in gson/src/main/java/com/google/gson/Gson.java
Line 183 in gson/src/main/java/com/google/gson/Gson.java
Line 184 in gson/src/main/java/com/google/gson/Gson.java
Line 248 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 883ce46
Second half of adopting Guice's types code. (Fri Dec 3 18:12:26 2010 +0000)
BUG START 37dc0f8
Type adapter for maps. Supports both complex and non-complex keys. (Wed Jan 12 00:17:21 2011 +0000)
BUG START e57ef09
Add method to GsonBuilder to enable complex key serialization of maps. (Tue Mar 15 15:37:41 2011 +0000)
BUG START dea7ab8
Restore pretty printing. The pretty printing format isn't as compact as the previous format - for example arrays of integers are printed one-per-line, whereas the previous format compacted these to all sit on the same line. (Mon Nov 1 23:03:41 2010 +0000)
BUG START aa06705
Restore support for long serialization policy. (Thu Aug 4 22:57:36 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START fede584
Gson 2.0 converts JSON with type Object.class into something meaningful such as a Collection of primitives or Maps. Updated tests for the new behavior. Changed $Gson$Types.getCollectionElementType to handle wild-card sub-classes of collections and raw collections. (Fri Sep 9 06:23:17 2011 +0000)
BUG START b883f8f
Add new "Mode" enum and carry mode through Gson so exclusion strategies know whether it is currently serializing or deserializing. (Sat Jan 22 22:15:06 2011 +0000)
BUG START 25c6ae1
Down to 22 failing tests. (Sun Sep 11 07:04:56 2011 +0000)
FIX f7121ad
Restored this behavior: If a type adapter is registered for a base class, then a field of that type is serialized with the type adapter instead of using the run-time type. This fixes: CustomSerializerTest.testBaseClassSerializerInvokedForBaseClassFieldsHoldingSubClassInstances
2011-08-12
Line 45 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java
Line 46 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java
Line 47 in gson/src/main/java/com/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java
BUG START ad5ff0f
Created a wrapper for runtime type determination. (Fri Aug 5 00:41:24 2011 +0000)
FIX 37abcf3
Break 203 tests and adopt the new stream binding internally. Test fixes coming soon...
2011-08-03
Line 23 in gson/src/main/java/com/google/gson/Gson.java
Line 218 in gson/src/main/java/com/google/gson/Gson.java
Line 219 in gson/src/main/java/com/google/gson/Gson.java
Line 220 in gson/src/main/java/com/google/gson/Gson.java
Line 221 in gson/src/main/java/com/google/gson/Gson.java
BUG START ba0cd25
Clean up warnings. (Tue Mar 15 15:38:17 2011 +0000)
BUG START 572421b
Open object construction in JsonDeserializationContext to leverage the same object construction as default gson deserialization. (Fri May 20 21:50:39 2011 +0000)
BUG START 337d89c
Removed ObjectNavigatorFactory (Thu Mar 24 20:19:41 2011 +0000)
FIX 161b4ba
Fix a pair of relatively benign off-by-one bugs. These only manifest if the source Reader returns characters one-at-a-time.
2011-07-22
Line 849 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 959 in gson/src/main/java/com/google/gson/stream/JsonReader.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START befcfd9
Skip a byte order mark (BOM) if it exists. http://code.google.com/p/android/issues/detail?id=18508 (Wed Jul 20 18:57:30 2011 +0000)
FIX 3c4d121
Fix integration tests that fell out from some benchmarking.
2011-07-15
Line 59 in extras/src/main/java/com/google/gson/mini/MiniGson.java
BUG START c5f1df1
MiniGSON prototype! (Mon Jul 11 16:46:52 2011 +0000)
FIX 041d499
Fix serialization where one type depends (possibly indireclty) on itself!
2011-07-12
Line 70 in extras/src/main/java/com/google/gson/mini/MiniGson.java
Line 71 in extras/src/main/java/com/google/gson/mini/MiniGson.java
Line 72 in extras/src/main/java/com/google/gson/mini/MiniGson.java
Line 73 in extras/src/main/java/com/google/gson/mini/MiniGson.java
Line 74 in extras/src/main/java/com/google/gson/mini/MiniGson.java
...and more
BUG START 95a3452
MiniGSON Map adapters and support for nulls. (Mon Jul 11 21:45:09 2011 +0000)
BUG START c5f1df1
MiniGSON prototype! (Mon Jul 11 16:46:52 2011 +0000)
FIX 7dca724
Fixing import order.
2011-07-12
Line 19 in gson/src/test/java/com/google/gson/functional/JsonParserTest.java
Line 20 in gson/src/test/java/com/google/gson/functional/JsonParserTest.java
Line 21 in gson/src/test/java/com/google/gson/functional/JsonParserTest.java
Line 22 in gson/src/test/java/com/google/gson/functional/JsonParserTest.java
Line 23 in gson/src/test/java/com/google/gson/functional/JsonParserTest.java
...and more
BUG START 9370196
Trailing comma tests (Fri Jul 1 21:36:05 2011 +0000)
BUG START c9cb05f
Do not leak out a ClassCastException to our clients. (Fri Mar 27 19:43:33 2009 +0000)
FIX edf9be2
fixed issue 339
2011-07-01
Line 29 in gson/pom.xml
BUG START 7c9f87d
[maven-release-plugin] prepare for next development iteration (Wed Apr 13 19:51:45 2011 +0000)
FIX aa89773
Quick fix for threading issue. Should maybe look into synchronizing this method instead.
2011-06-07
Line 162 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 163 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 164 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 166 in gson/src/main/java/com/google/gson/FieldAttributes.java
BUG START 9816426
Add new Cache interface and LRU Cache implementation to cache field annotations per "Class" (rather than per instance). This results in a significant speed-up (approx. 3X) when serializing/deserializing the same classes over and over again. (Sun Jan 10 00:32:21 2010 +0000)
FIX 533ea17
Fix typo
2011-06-03
Line 73 in gson/src/main/java/com/google/gson/UnsafeAllocator.java
BUG START 43137b6
Fix unsafe allocations on Android (Fri Mar 11 00:44:15 2011 +0000)
FIX 8fd4072
fixed javadocs
2011-06-03
Line 107 in gson/src/main/java/com/google/gson/FieldAttributes.java
BUG START 839b0c2
Refactored exclusion strategies so that they can easily be exposed as part of the public API. (Wed Oct 7 09:23:14 2009 +0000)
FIX 4efeef1
Make test a little more complex to show it actually fixed the bug.
2011-04-20
Line 281 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
Line 282 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
BUG START f291c4d
Fix a bunch of preserve-type issues: - Issue 205 - Issue 294 - Issue 318 (Wed Apr 20 22:27:51 2011 +0000)
FIX f291c4d
Fix a bunch of preserve-type issues: - Issue 205 - Issue 294 - Issue 318
2011-04-20
Line 680 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 19 in gson/src/main/java/com/google/gson/JsonSerializationContextDefault.java
Line 62 in gson/src/main/java/com/google/gson/JsonSerializationContextDefault.java
Line 65 in gson/src/main/java/com/google/gson/JsonSerializationContextDefault.java
Line 111 in gson/src/main/java/com/google/gson/ObjectNavigator.java
...and more
BUG START 2fb8c92
Use more specific type for map serialization if possible. (Mon Apr 4 23:13:31 2011 +0000)
BUG START c8bd121
Renamed $Preconditions to $Gson$Preconditions and $Types to $Gson$Types. Marked the two private classes in $Types as final. (Wed Apr 6 00:26:57 2011 +0000)
BUG START 861e047
Create an "internals" package for classes that we do not want to share, but is needed across multiple pacakges. (Mon Mar 21 22:30:35 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START b634804
Ensured that a base class custom serializer is run when the type is specified explicitly during serialization. For all other situations, ensured that the actual type of the object is taken into consideration while serializing. First a custom handler corresponding to the actual type is looked up, then a custom handler for the specified type. Created some serialization specific tests regarding custom serializers. Revised some tests to use toJsonTree for better asserts instead of string matching. (Thu Oct 8 19:28:53 2009 +0000)
BUG START 40045dc
Added tests to ensure that subclass objects are serialized per their real type in lists or maps. Currently, this doesnt happen for List and hence the test is marked as disabled. (Tue Apr 19 20:26:16 2011 +0000)
BUG START 933a3e5
Allow serialization of nulls in a "List<Object>" type. (Tue Sep 29 20:34:35 2009 +0000)
FIX 1c3d087
Fixed typo.
2011-04-13
Line 60 in gson/src/main/java/com/google/gson/JsonDeserializerExceptionWrapper.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 5770be4
More fixes to JavaDoc.
2011-04-12
Line 78 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
Line 83 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
BUG START 7c42ef3
Update incomplete comment. (Mon Apr 4 23:16:44 2011 +0000)
BUG START 49e7ee0
Fix method name by making it singular. (Mon Apr 11 18:44:19 2011 +0000)
FIX ecf137f
More fixes to JavaDoc.
2011-04-11
Line 358 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 375 in gson/src/main/java/com/google/gson/GsonBuilder.java
BUG START c5c7c5b
More fixes to JavaDoc. (Mon Apr 11 18:52:29 2011 +0000)
FIX c5c7c5b
More fixes to JavaDoc.
2011-04-11
Line 358 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 359 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 360 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 361 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 373 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START dc283e1
Fixed comments from r774. (Tue Apr 5 23:36:05 2011 +0000)
BUG START 542a17c
Incorporated comments from r710 (Mon Apr 4 22:48:34 2011 +0000)
BUG START b883f8f
Add new "Mode" enum and carry mode through Gson so exclusion strategies know whether it is currently serializing or deserializing. (Sat Jan 22 22:15:06 2011 +0000)
FIX 49e7ee0
Fix method name by making it singular.
2011-04-11
Line 78 in gson/src/main/java/com/google/gson/ExclusionStrategy.java
Line 367 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 382 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 94 in gson/src/test/java/com/google/gson/functional/ExclusionStrategyFunctionalTest.java
Line 96 in gson/src/test/java/com/google/gson/functional/ExclusionStrategyFunctionalTest.java
BUG START 7c42ef3
Update incomplete comment. (Mon Apr 4 23:16:44 2011 +0000)
BUG START 457b37f
Replace var-args with single parameter. (Mon Apr 11 18:09:59 2011 +0000)
BUG START 542a17c
Incorporated comments from r710 (Mon Apr 4 22:48:34 2011 +0000)
FIX c266097
Fix minor JavaDoc issue.
2011-04-11
Line 259 in gson/src/main/java/com/google/gson/GsonBuilder.java
BUG START 7b223a8
Adding JavaDoc to the enableComplexMapKeySerialization method on GsonBuilder. (Wed Mar 16 07:05:24 2011 +0000)
FIX ddb0c8c
Minor formatting fixes.
2011-04-06
Line 104 in gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java
Line 105 in gson/src/main/java/com/google/gson/ModifyFirstLetterNamingPolicy.java
Line 19 in gson/src/test/java/com/google/gson/MappedObjectConstructorTest.java
Line 20 in gson/src/test/java/com/google/gson/MappedObjectConstructorTest.java
Line 31 in gson/src/test/java/com/google/gson/MappedObjectConstructorTest.java
...and more
BUG START 2b1f3ee
Removed a bunch of unused code and unnecessary else statements. (Tue Sep 28 13:42:43 2010 +0000)
BUG START 451a9db
Add ability to allocate memory for an object without the use of the default constructor. (Fri Feb 11 18:22:07 2011 +0000)
BUG START 4be9767
removed unused imports (Thu Feb 24 20:18:03 2011 +0000)
FIX dc283e1
Fixed comments from r774.
2011-04-05
Line 356 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 359 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 360 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 362 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 375 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START 542a17c
Incorporated comments from r710 (Mon Apr 4 22:48:34 2011 +0000)
BUG START 114633f
Provide a means to add serialization or deserialization specific exclusion strategies. (Fri Feb 4 03:09:41 2011 +0000)
FIX bf4ab04
replaced multiple caches in ReflectingFieldNavigator with a single one. Two additional optimizations: - storing the field list for the entire type hierarchy in the cache instead of navigating it every time. - storing the resolved type for the field in FieldAttributes instead of using reflection every time.
2011-04-01
Line 61 in gson/src/main/java/com/google/gson/FieldAttributes.java
Line 36 in gson/src/main/java/com/google/gson/ReflectingFieldNavigator.java
Line 37 in gson/src/main/java/com/google/gson/ReflectingFieldNavigator.java
Line 38 in gson/src/main/java/com/google/gson/ReflectingFieldNavigator.java
Line 39 in gson/src/main/java/com/google/gson/ReflectingFieldNavigator.java
...and more
BUG START 0adf7f5
Caching fields for a class for reducing the need for reflection. (Thu Mar 24 22:13:51 2011 +0000)
BUG START 5bc80cd
Moved Cache, LruCache, Pair, Primitives and UnsafeAllocator to com.google.gson and made them package private. (Wed Mar 30 13:59:06 2011 +0000)
BUG START d0977c2
Exposing the declaring class for the field wrapped by FieldAttributes. (Mon Nov 1 22:31:48 2010 +0000)
BUG START ad921a0
removed unused variable. eliminated unnecessary ObjTypePair creation. (Thu Mar 24 22:37:03 2011 +0000)
BUG START b819307
refactored the field navigation using reflection out of ObjectNavigator. (Thu Mar 24 18:28:23 2011 +0000)
BUG START 4a58dc3
Moving AccessibleObject.setAccessible to where the fields are obtained by reflection. (Thu Mar 24 22:16:25 2011 +0000)
BUG START 4efb133
bling bling (Tue Mar 29 21:24:26 2011 +0000)
BUG START 4d9bec2
Caching inheritance hierarchy for a type to reduce performance impact of reflection. (Thu Mar 24 22:28:45 2011 +0000)
FIX 9c894c7
switched from accessing field to an accessor method for access in tests. Strangely, this fixes the broken tests in the continuous build.
2011-03-31
Line 27 in gson/src/main/java/com/google/gson/DefaultConstructorAllocator.java
Line 30 in gson/src/main/java/com/google/gson/DefaultConstructorAllocator.java
Line 31 in gson/src/main/java/com/google/gson/DefaultConstructorAllocator.java
Line 57 in gson/src/test/java/com/google/gson/DefaultConstructorAllocatorTest.java
BUG START 5bc80cd
Moved Cache, LruCache, Pair, Primitives and UnsafeAllocator to com.google.gson and made them package private. (Wed Mar 30 13:59:06 2011 +0000)
BUG START 454f58a
Adding in instance creator to instantiate the concrete Collection or Map class if known, otherwise fallback to a default instance. (Tue Mar 29 16:57:28 2011 +0000)
FIX 0c35eda
Fixed the bug where copyOf() for a ParameterizedTypeHandlerMap was failing when hierarchical type adapters for a sub class and its base class were present.
2011-03-14
Line 175 in gson/src/main/java/com/google/gson/ParameterizedTypeHandlerMap.java
Line 176 in gson/src/main/java/com/google/gson/ParameterizedTypeHandlerMap.java
Line 177 in gson/src/main/java/com/google/gson/ParameterizedTypeHandlerMap.java
Line 178 in gson/src/main/java/com/google/gson/ParameterizedTypeHandlerMap.java
Line 179 in gson/src/main/java/com/google/gson/ParameterizedTypeHandlerMap.java
...and more
BUG START 912add0
(Failing) test cases for registering competing types. (Mon Mar 14 22:14:35 2011 +0000)
BUG START 8aedbc8
Added a new GsonBuilder option to register a type adapter for a type hierarchy instead of a single type. Upgraded Gson version to 1.5 since a new API call is being added. (Mon Jun 21 23:26:06 2010 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 43137b6
Fix unsafe allocations on Android
2011-03-11
Line 21 in gson/src/main/java/com/google/gson/MappedObjectConstructor.java
Line 22 in gson/src/main/java/com/google/gson/MappedObjectConstructor.java
Line 24 in gson/src/main/java/com/google/gson/MappedObjectConstructor.java
Line 25 in gson/src/main/java/com/google/gson/MappedObjectConstructor.java
Line 26 in gson/src/main/java/com/google/gson/MappedObjectConstructor.java
...and more
BUG START 451a9db
Add ability to allocate memory for an object without the use of the default constructor. (Fri Feb 11 18:22:07 2011 +0000)
BUG START 6a80791
Code cleanup and some minor performance fixes. (Tue Jan 20 01:36:54 2009 +0000)
BUG START 6728c74
Updated log statements to be localizable. (Tue Jun 15 20:40:12 2010 +0000)
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START 4c41b11
Comments from r723. (Mon Feb 14 22:26:17 2011 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 4be9767
removed unused imports (Thu Feb 24 20:18:03 2011 +0000)
BUG START 764e4d9
Performance fixes after doing some profiling. (Tue Jan 20 08:38:21 2009 +0000)
FIX 52288d7
rawtypes -> unchecked Fixed spurious eclipse warnings on deprecation, missing classes or parameters, etc.
2011-02-24
Line 68 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 20 in gson/src/main/java/com/google/gson/FieldNamingStrategy2Adapter.java
Line 276 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 20 in gson/src/main/java/com/google/gson/NullExclusionStrategy.java
Line 21 in gson/src/main/java/com/google/gson/ObjectNavigatorFactory.java
...and more
BUG START 8380d28
removed compiler warnings (Mon Dec 6 19:47:41 2010 +0000)
BUG START 114633f
Provide a means to add serialization or deserialization specific exclusion strategies. (Fri Feb 4 03:09:41 2011 +0000)
BUG START eac1505
Removed eclipse warnings about unneeded else statements and rawtypes/unchecked access. (Thu Nov 11 07:29:55 2010 +0000)
BUG START de0f8da
replaced unchecked suppressed warnings token with more specific rawtypes. removed unused imports. (Fri Aug 20 16:27:46 2010 +0000)
BUG START e3af076
Deprecate the FieldNamingStrategy interface and replace it with FieldNamingStrategy2. This is the first step to help make it easy to cache field annotations across all instances of a class, etc. (Sat Jan 9 22:43:27 2010 +0000)
BUG START b883f8f
Add new "Mode" enum and carry mode through Gson so exclusion strategies know whether it is currently serializing or deserializing. (Sat Jan 22 22:15:06 2011 +0000)
FIX d87eed5
Fixed compilation problem since we dropped registerTypeHierarchyAdapter method
2010-11-24
Line 128 in gson/src/test/java/com/google/gson/functional/EnumTest.java
BUG START 6a951b4
Adding new tests (two of which are disabled, but prepping for 1.7). (Fri Nov 5 22:57:44 2010 +0000)
FIX 7d055fc
Fixing fromJson type casting.
2010-11-11
Line 485 in gson/src/main/java/com/google/gson/Gson.java
BUG START 32afd1a
Fixing parsing of unquoted strings to be (somewhat) consistent with previous versions of Gson. The difference with this version is that Gson will throw a more specific exception rather than JsonParseException. (Wed Nov 10 02:02:57 2010 +0000)
FIX 54ba112
Added server-side dispatchers for REST and procedural calls Implemented the REST dispatcher.
2010-11-11
Line 18 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 19 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 20 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 21 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 22 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
...and more
BUG START 7e05cde
Added ability to specify a different ID than the Id class for a RestResource. (Thu Nov 4 15:25:43 2010 +0000)
BUG START 425a590
Added an example of a servlet class that uses Gson for web-service implementation. (Tue Jul 20 00:31:33 2010 +0000)
BUG START 4a85204
Moved the classes to create procedural web-services into a procedural package. (Tue Nov 2 17:48:51 2010 +0000)
BUG START 681281e
Moved the classes to create procedural web-services into a procedural package. Moved IdTypeAdapter as an inner class of Id (Id.GsonTypeAdapter). Created a internal.util package to keep commonly used classes such as Preconditions. made common base classes such as ParamMap, ContentBody public. (Tue Nov 2 17:16:01 2010 +0000)
BUG START 8122deb
fixed copyright notice, minor cosmetic changes. (Tue Jul 20 00:34:40 2010 +0000)
FIX 32afd1a
Fixing parsing of unquoted strings to be (somewhat) consistent with previous versions of Gson. The difference with this version is that Gson will throw a more specific exception rather than JsonParseException.
2010-11-10
Line 455 in gson/src/main/java/com/google/gson/Gson.java
Line 479 in gson/src/main/java/com/google/gson/Gson.java
Line 25 in gson/src/main/java/com/google/gson/JsonParser.java
Line 31 in gson/src/main/java/com/google/gson/JsonParser.java
Line 34 in gson/src/main/java/com/google/gson/JsonParser.java
...and more
BUG START 20d895f
Fix primitive wrapping and casting. (Mon Nov 1 22:36:30 2010 +0000)
BUG START 73d93e3
Provide a setting to allow a client to skip the escaping of special HTML characters. (Sun Dec 28 23:05:22 2008 +0000)
BUG START 0e17041
Added another test to JsonParserTest. (Wed Sep 23 19:21:09 2009 +0000)
BUG START bc6ec50
incorporated fixes from code review of r341 (Tue Dec 23 18:24:13 2008 +0000)
BUG START ffdf0e7
Fix some test problems. (Thu Sep 2 00:10:26 2010 +0000)
BUG START c8c3a69
Fix a regression that expects different type adapters for long.class and Long.class. This is a temporary fix; later we may want to always use the canonical wrapped class. (Mon Nov 1 22:46:20 2010 +0000)
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
BUG START 788d2bf
Fix parsing of double and big decimals that have an exponent but no fraction part. (Tue Nov 18 19:55:14 2008 +0000)
BUG START cbc6b4d
Added checks to ensure that we do not serialize NaN or postiive or negative infinity for doubles. (Thu Dec 18 20:00:27 2008 +0000)
BUG START f7e4d5e
Added checks to ensure that we do not serialize NaN or postiive or negative infinity for BigDecimal. (Thu Dec 18 23:56:38 2008 +0000)
BUG START 6dbdb27
Added checks to ensure that we do not serialize NaN or postiive or negative infinity for floats. (Thu Dec 18 23:41:44 2008 +0000)
BUG START 0127891
Added a new API method in JsonParser to allow reading of multiple JSON objects on a stream asynchronously. (Fri May 8 22:22:34 2009 +0000)
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 747e3c3
Support mixed streaming and databinding with new APIs. (Thu Sep 2 00:15:23 2010 +0000)
BUG START 628a2c5
Added default serializer/deserializer for "Number" (Tue Nov 18 20:05:02 2008 +0000)
BUG START c3f61ee
Added a test to reproduce bug described in http://groups.google.com/group/google-gson/browse_thread/thread/9591c539e3c19d59 Seems like an invalid bug report as Gson can deserialize primitive values in Integer fields. (Mon Jul 19 23:32:24 2010 +0000)
BUG START 2034090
Changed version to 1.3 Made JsonParser.parse a non-static method. (Tue Mar 31 17:53:23 2009 +0000)
BUG START b0f50bb
Return a "JsonNull" object for empty whitespace input into the JsonParser. (Wed Sep 23 19:00:05 2009 +0000)
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START d5319d9
Parse all JSON numbers as either BigDecimal or BigInteger. From there we can properly convert into the proper primitive type if need be. This reduces the chance of losing precision with floating point numbers. (Tue Nov 18 20:26:15 2008 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX f6a3329
Warning fixes.
2010-11-05
Line 65 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 90 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 122 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 159 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 199 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 9245beb
For the Collection and Map types, using ObjectConstructor to create instance instead of hard-coding a specific type. This helps is handling cases where the user is using their own subclass of Collection or Map. (Fri Nov 14 02:11:46 2008 +0000)
BUG START eaa43b7
Added a custom type adapter for Collection class. We will migrate the code to use it instead of special cases for collections all over. This type adapter is called at a few places already. (Thu Nov 13 23:40:10 2008 +0000)
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
BUG START e9600e1
Made GregorianCalendarTypeAdapter consistent with the other default type adapters. (Wed Apr 1 17:07:23 2009 +0000)
BUG START 0b5f3dc
Added UUID as a default type supported by Gson. (Sat Dec 13 20:42:31 2008 +0000)
BUG START 911a92b
Removal of all unnecessary "Default" InstanceCreators. While refactoring the code, I found a bug that these InstanceCreators were being called when inside an "Array". This bug is fixed in this change. (Sat Dec 27 23:43:16 2008 +0000)
BUG START 3cd665b
Added support for serialization of raw maps. Also, refactored tests for maps in MapTest class. (Tue Oct 21 22:37:41 2008 +0000)
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START de0f8da
replaced unchecked suppressed warnings token with more specific rawtypes. removed unused imports. (Fri Aug 20 16:27:46 2010 +0000)
BUG START 628a2c5
Added default serializer/deserializer for "Number" (Tue Nov 18 20:05:02 2008 +0000)
BUG START 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style. (Mon Oct 13 18:40:20 2008 +0000)
BUG START cc33447
Fixed issue 87 by adding support for deserialization of java.util.Properties (Wed Dec 31 01:01:57 2008 +0000)
BUG START ed838ec
replaced unchecked suppressed warnings token with more specific rawtypes (Fri Aug 20 16:20:37 2010 +0000)
BUG START 15fa109
Fixed serializers and deserializers for java.sql Date and Time to ensure that Date does't serialize time, and time does't serialize the date portion. (Fri Dec 4 18:15:00 2009 +0000)
BUG START 809e3b5
Fixed bug 106 by adding custom serialization support for Gregorian Calendar. (Wed Mar 11 21:46:58 2009 +0000)
FIX bdf5bef
Fix JavaDoc on JsonSyntaxException
2010-11-05
Line 19 in gson/src/main/java/com/google/gson/JsonSyntaxException.java
Line 20 in gson/src/main/java/com/google/gson/JsonSyntaxException.java
Line 21 in gson/src/main/java/com/google/gson/JsonSyntaxException.java
Line 39 in gson/src/main/java/com/google/gson/JsonSyntaxException.java
BUG START 7ea5cc2
Added a new JsonSyntaxException to indicate syntax errors in Gson. (Mon Nov 1 17:53:31 2010 +0000)
BUG START 7b99419
Removed compiler warnings. (Wed Nov 3 23:14:42 2010 +0000)
FIX b50277c
revised prefix for rest packages to com.google.gson.rest from com.google.gson.webservice.rest
2010-11-02
Line 16 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
Line 28 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
Line 29 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
Line 30 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
Line 31 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
...and more
BUG START e4e9254
Added an asynchronous client for invoking Web-services. This client uses a queue to hold web-service requests and returns the control back to the caller. A separate thread executes these web-service requests and invokes a caller-suplied callback with the results. Made WebServiceClient reusable across different type of Web-service calls. Added configurable logging support in RequestSender, ResponseReceiver and WebServiceClients. Added some logging. Throwing WebServiceSystemException instead of RuntimException. (Wed Jan 20 13:59:59 2010 +0000)
BUG START dbca557
Added Content-Length to each request that goes out. If a web-service request fails, we try to log as much response as possible. (Sun Jan 24 15:02:17 2010 +0000)
BUG START 849612c
initial creation of the wsf project. (Mon Sep 1 13:37:34 2008 +0000)
BUG START 341c4ce
Added an example client to invoke example web-service Update license files (Fri Jul 16 16:06:41 2010 +0000)
BUG START c01fd85
Added toString() methods. (Fri Oct 22 15:12:05 2010 +0000)
BUG START 5adfa4b
Defined an interface RestResource that all resources need to extend from. Defined an Id class for a resource. Changed a rest body spec to take a type instead of a class. This allows parameterized resource types. Defined a repository interface with an in-memory implementation for server-side storage of rest resource instances. (Sun Oct 17 16:01:36 2010 +0000)
BUG START a7e3971
Added setting of content-length in requests even if the body is non existent. Fixed logs for requests. Ensured that streams are not inadvertently closed while copying output. (Tue Jan 26 14:18:19 2010 +0000)
BUG START 9c8e8bd
added ability to specify a Gson instance for use in getting a response. (Wed Feb 3 05:07:52 2010 +0000)
BUG START 1d26482
Revised the hashCode of Id to be based just on the value. Also, revised the equals method to return true when the only difference in the type is that one class is Foo and other is Foo<?, ?>. Added a compact toString() in the Id class that prints the type as MyType<Foo,Bar> instead of fully qualified names for each of the types. Added tests regarding object equality for the Id class. (Sat Oct 23 15:34:57 2010 +0000)
BUG START 681281e
Moved the classes to create procedural web-services into a procedural package. Moved IdTypeAdapter as an inner class of Id (Id.GsonTypeAdapter). Created a internal.util package to keep commonly used classes such as Preconditions. made common base classes such as ParamMap, ContentBody public. (Tue Nov 2 17:16:01 2010 +0000)
BUG START ad0e0d6
Added means to define and implement REST web-service and its clients. Added missing copyright headers. Added TypedKey based methods in request/response classes. (Mon Feb 15 23:24:48 2010 +0000)
BUG START 51efca8
Removed dependence on Guice and Collections from wsclient. Renamed Builder.create() methods to Builder.build() (Tue Jan 19 12:58:52 2010 +0000)
BUG START 281ed6f
Created a generalized key-value store,MetaDataMap, for a map of MetaData. Moved MetaData to wsdef from wsf. Added a Gson type adapter for Id type. (Mon Oct 18 15:45:35 2010 +0000)
FIX c6a4f55
Fix for Issue #40.
2010-11-02
Line 95 in gson/src/main/java/com/google/gson/TypeInfoFactory.java
BUG START 2b1f3ee
Removed a bunch of unused code and unnecessary else statements. (Tue Sep 28 13:42:43 2010 +0000)
FIX 4413c29
Fixing compiler warnings
2010-11-02
Line 22 in wsclient/src/main/java/com/google/gson/webservice/client/TaskExecutor.java
Line 23 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/HasId.java
Line 65 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/MetaData.java
Line 86 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/MetaData.java
Line 52 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/ResourceMap.java
...and more
BUG START e4e9254
Added an asynchronous client for invoking Web-services. This client uses a queue to hold web-service requests and returns the control back to the caller. A separate thread executes these web-service requests and invokes a caller-suplied callback with the results. Made WebServiceClient reusable across different type of Web-service calls. Added configurable logging support in RequestSender, ResponseReceiver and WebServiceClients. Added some logging. Throwing WebServiceSystemException instead of RuntimException. (Wed Jan 20 13:59:59 2010 +0000)
BUG START 6d9893d
Added a transient map in Metadata since metadata is often of two kinds: transient and persistent. persistent part is serialized/deserialized to JSON. Fixed imports in RepositoryInMemory. (Sat Oct 23 15:45:33 2010 +0000)
BUG START 5adfa4b
Defined an interface RestResource that all resources need to extend from. Defined an Id class for a resource. Changed a rest body spec to take a type instead of a class. This allows parameterized resource types. Defined a repository interface with an in-memory implementation for server-side storage of rest resource instances. (Sun Oct 17 16:01:36 2010 +0000)
BUG START 281ed6f
Created a generalized key-value store,MetaDataMap, for a map of MetaData. Moved MetaData to wsdef from wsf. Added a Gson type adapter for Id type. (Mon Oct 18 15:45:35 2010 +0000)
FIX c8c3a69
Fix a regression that expects different type adapters for long.class and Long.class. This is a temporary fix; later we may want to always use the canonical wrapped class.
2010-11-01
Line 395 in gson/src/main/java/com/google/gson/Gson.java
Line 396 in gson/src/main/java/com/google/gson/Gson.java
Line 397 in gson/src/main/java/com/google/gson/Gson.java
Line 446 in gson/src/main/java/com/google/gson/Gson.java
Line 447 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 20d895f
Fix primitive wrapping and casting. (Mon Nov 1 22:36:30 2010 +0000)
FIX 20d895f
Fix primitive wrapping and casting.
2010-11-01
Line 395 in gson/src/main/java/com/google/gson/Gson.java
Line 396 in gson/src/main/java/com/google/gson/Gson.java
Line 445 in gson/src/main/java/com/google/gson/Gson.java
Line 446 in gson/src/main/java/com/google/gson/Gson.java
Line 504 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 747e3c3
Support mixed streaming and databinding with new APIs. (Thu Sep 2 00:15:23 2010 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
BUG START e2cfc0c
Update GsonBuilder API to accept an enum for the serialize Long as string. This will be useful if/when we implement support to serialize a long type as an array of integers. (Sun Jan 11 06:11:29 2009 +0000)
FIX 6d9893d
Added a transient map in Metadata since metadata is often of two kinds: transient and persistent. persistent part is serialized/deserialized to JSON. Fixed imports in RepositoryInMemory.
2010-10-23
Line 31 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/MetaData.java
Line 81 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/MetaData.java
Line 105 in wsdef/src/main/java/com/google/gson/webservice/definition/rest/MetaData.java
Line 18 in wsf/src/main/java/com/google/gson/wsf/server/rest/RepositoryInMemory.java
Line 19 in wsf/src/main/java/com/google/gson/wsf/server/rest/RepositoryInMemory.java
...and more
BUG START c01fd85
Added toString() methods. (Fri Oct 22 15:12:05 2010 +0000)
BUG START 5adfa4b
Defined an interface RestResource that all resources need to extend from. Defined an Id class for a resource. Changed a rest body spec to take a type instead of a class. This allows parameterized resource types. Defined a repository interface with an in-memory implementation for server-side storage of rest resource instances. (Sun Oct 17 16:01:36 2010 +0000)
BUG START 281ed6f
Created a generalized key-value store,MetaDataMap, for a map of MetaData. Moved MetaData to wsdef from wsf. Added a Gson type adapter for Id type. (Mon Oct 18 15:45:35 2010 +0000)
FIX ed415f6
Ensuring that the HTTP connection is closed when the rest call is finished.
2010-09-30
Line 73 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
BUG START ad0e0d6
Added means to define and implement REST web-service and its clients. Added missing copyright headers. Added TypedKey based methods in request/response classes. (Mon Feb 15 23:24:48 2010 +0000)
FIX 1a4bea7
removed redundant null checks. Fixed bug in Streams.copy where it was not honoring the closeInput and closeOutput parameters. Suppressed spurious unused warnings
2010-09-28
Line 72 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 73 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 74 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 64 in wsclient/src/main/java/com/google/gson/webservice/client/RestRequestSender.java
Line 71 in wsclient/src/main/java/com/google/gson/webservice/client/RestRequestSender.java
...and more
BUG START ad0e0d6
Added means to define and implement REST web-service and its clients. Added missing copyright headers. Added TypedKey based methods in request/response classes. (Mon Feb 15 23:24:48 2010 +0000)
BUG START dbca557
Added Content-Length to each request that goes out. If a web-service request fails, we try to log as much response as possible. (Sun Jan 24 15:02:17 2010 +0000)
BUG START a7e3971
Added setting of content-length in requests even if the body is non existent. Fixed logs for requests. Ensured that streams are not inadvertently closed while copying output. (Tue Jan 26 14:18:19 2010 +0000)
BUG START c5e3c32
Added missing class (Mon Dec 28 10:17:40 2009 +0000)
FIX e656954
removed spurious warnings and allowed extension of RestClient for creating testing fixtures.
2010-09-19
Line 37 in wsclient/src/main/java/com/google/gson/webservice/client/RestClient.java
Line 43 in wsdef/src/main/java/com/google/gson/webservice/definition/TypeUtils.java
Line 57 in wsdef/src/main/java/com/google/gson/webservice/definition/TypeUtils.java
Line 71 in wsdef/src/main/java/com/google/gson/webservice/definition/TypeUtils.java
BUG START ad0e0d6
Added means to define and implement REST web-service and its clients. Added missing copyright headers. Added TypedKey based methods in request/response classes. (Mon Feb 15 23:24:48 2010 +0000)
BUG START 45bf2db
Created new projects: 1. wsdef: contains classes that are used to define a Gson based JSON web service 2. wsclient: contains classes that are used to write a Gson based web-service client (Mon Dec 28 09:44:47 2009 +0000)
FIX 202bbfe
Fixing the Java 1.5 build.
2010-09-02
Line 751 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 1074 in gson/src/main/java/com/google/gson/stream/JsonReader.java
Line 168 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 181 in gson/src/test/java/com/google/gson/stream/JsonWriterTest.java
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
FIX ffdf0e7
Fix some test problems.
2010-09-02
Line 20 in gson/src/test/java/com/google/gson/JsonParserTest.java
Line 22 in gson/src/test/java/com/google/gson/JsonParserTest.java
Line 23 in gson/src/test/java/com/google/gson/JsonParserTest.java
Line 92 in gson/src/test/java/com/google/gson/JsonParserTest.java
Line 93 in gson/src/test/java/com/google/gson/JsonParserTest.java
BUG START 0127891
Added a new API method in JsonParser to allow reading of multiple JSON objects on a stream asynchronously. (Fri May 8 22:22:34 2009 +0000)
BUG START 7a7bbf7
Use JsonReader internally rather than JsonParserJavacc. (Fri Aug 27 05:59:18 2010 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX 486820f
Fix some test problems.
2010-08-28
Line 347 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 387 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 390 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 391 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
Line 392 in gson/src/main/java/com/google/gson/stream/JsonWriter.java
...and more
BUG START 765a9f1
Brand new classes for streaming JSON efficiently. (Thu Aug 26 08:44:02 2010 +0000)
BUG START d87d3f8
Added functional tests for user defined exclusion strategy. Added test to ensure empty/null properties are added for the JsonObject. (Fri Oct 9 21:12:07 2009 +0000)
BUG START ff7aa3f
Escape only the required characters when emitting JSON. This means that instead of emitting (Sat Aug 28 07:29:22 2010 +0000)
FIX 5bffa1f
Fix for Issue 178.
2010-08-21
Line 46 in gson/src/main/java/com/google/gson/JsonCompactFormatter.java
Line 51 in gson/src/main/java/com/google/gson/JsonCompactFormatter.java
Line 59 in gson/src/main/java/com/google/gson/JsonCompactFormatter.java
Line 66 in gson/src/main/java/com/google/gson/JsonCompactFormatter.java
Line 93 in gson/src/main/java/com/google/gson/JsonCompactFormatter.java
...and more
BUG START 73d93e3
Provide a setting to allow a client to skip the escaping of special HTML characters. (Sun Dec 28 23:05:22 2008 +0000)
BUG START 50eb582
Ensure that the JsonElement.toString() will always generate valid JSON (even when control characters/whitespace characters are used). (Wed Sep 23 18:28:03 2009 +0000)
BUG START 93b0008
Adding restrictions on the JsonElements to disallow Java "null"s. (Thu Oct 8 22:03:08 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 90a4619
Minor fixes for pretty printing. (Sun Jan 11 05:01:23 2009 +0000)
BUG START 9bcbb4c
Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer (Wed Nov 26 19:13:14 2008 +0000)
FIX 3fc4bcc
Minor test fixes. Explicitly fail test if the expected exception was not thrown.
2010-08-21
Line 34 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
Line 66 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
Line 84 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
Line 101 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
Line 102 in gson/src/test/java/com/google/gson/functional/ArrayTest.java
...and more
BUG START 41a1f8b
Added tests in response to http://groups.google.com/group/google-gson/browse_thread/thread/41478d30b9f100b5 (Mon Aug 10 17:47:11 2009 +0000)
BUG START e5ed1cc
Added some more tests. (Tue Sep 29 20:24:48 2009 +0000)
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 6a80791
Code cleanup and some minor performance fixes. (Tue Jan 20 01:36:54 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 18b301d
- Serializing of Object arrays. - Fixed incorrect warning (Tue Sep 22 19:04:27 2009 +0000)
BUG START cbcf7de
Updated Grammar for matching JsonArray to be left-associative rather than right-associative. Gson can now parse arrays of size over 11MB instead of 80KB which was the prior limit. Thanks for the tip, kenotron. (Sat Aug 22 01:03:27 2009 +0000)
FIX 8122deb
fixed copyright notice, minor cosmetic changes.
2010-07-20
Line 1 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 2 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 36 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 40 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
Line 49 in wsexample/server/src/main/java/com/google/gson/wsexample/server/MainServlet.java
...and more
BUG START 425a590
Added an example of a servlet class that uses Gson for web-service implementation. (Tue Jul 20 00:31:33 2010 +0000)
FIX 8d24fe6
fixed the maven configuration file for relative paths
2010-07-13
Line 8 in wsexample/definition/pom.xml
Line 40 in wsexample/definition/pom.xml
Line 41 in wsexample/definition/pom.xml
Line 42 in wsexample/definition/pom.xml
Line 74 in wsexample/definition/pom.xml
...and more
BUG START ceb2f8f
A Web-service example (Tue Jul 13 21:47:37 2010 +0000)
FIX b2af57d
Added checks to ensure that typeHierarchyAdapter being registered doesn't hide a previously existing one. Fixed a bug where registerIfAbsent was adding type adapters in the reverse order of priority. Added toString() to Pair.
2010-06-24
Line 113 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 151 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 189 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 194 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 195 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START 8aedbc8
Added a new GsonBuilder option to register a type adapter for a type hierarchy instead of a single type. Upgraded Gson version to 1.5 since a new API call is being added. (Mon Jun 21 23:26:06 2010 +0000)
BUG START 7079799
Fixed issue 167 by adding support for TreeSet deserialization. Added tests for serialization/deserialization of treesets. (Fri Jan 8 19:14:42 2010 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 4fc6400
Fixed the test that broke while fixing issue 100 in r394 by using a TreeSet for SortedSets and HashSet for other kind of sets. (Thu Mar 12 18:17:14 2009 +0000)
BUG START a595032
Fixed issue 100 by adding support for deserialization of collections of elements that do not implement Comparable. (Thu Mar 12 01:59:48 2009 +0000)
FIX d46fea8
added type cast to fix JDK version mismatch issue
2010-04-03
Line 67 in wsdef/src/main/java/com/google/gson/webservice/definition/ParamMap.java
BUG START 1925fb9
Introduced the notion of TypedKey for a parameter map or spec (Mon Feb 15 14:46:42 2010 +0000)
FIX a7e3971
Added setting of content-length in requests even if the body is non existent. Fixed logs for requests. Ensured that streams are not inadvertently closed while copying output.
2010-01-26
Line 73 in wsclient/src/main/java/com/google/gson/webservice/client/Preconditions.java
Line 45 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 61 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 63 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
Line 64 in wsclient/src/main/java/com/google/gson/webservice/client/RequestSender.java
...and more
BUG START e4e9254
Added an asynchronous client for invoking Web-services. This client uses a queue to hold web-service requests and returns the control back to the caller. A separate thread executes these web-service requests and invokes a caller-suplied callback with the results. Made WebServiceClient reusable across different type of Web-service calls. Added configurable logging support in RequestSender, ResponseReceiver and WebServiceClients. Added some logging. Throwing WebServiceSystemException instead of RuntimException. (Wed Jan 20 13:59:59 2010 +0000)
BUG START dbca557
Added Content-Length to each request that goes out. If a web-service request fails, we try to log as much response as possible. (Sun Jan 24 15:02:17 2010 +0000)
BUG START 849612c
initial creation of the wsf project. (Mon Sep 1 13:37:34 2008 +0000)
FIX 15fa109
Fixed serializers and deserializers for java.sql Date and Time to ensure that Date does't serialize time, and time does't serialize the date portion.
2009-12-04
Line 59 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 60 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 115 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 150 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 293 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START ebf24fb
Fixed issue 134 by adding support for java.sql Date and Timestamp classses. (Fri Dec 4 01:21:13 2009 +0000)
FIX ebf24fb
Fixed issue 134 by adding support for java.sql Date and Timestamp classses.
2009-12-04
Line 33 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
Line 34 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
Line 35 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
Line 36 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
Line 37 in gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
...and more
BUG START 3cd665b
Added support for serialization of raw maps. Also, refactored tests for maps in MapTest class. (Tue Oct 21 22:37:41 2008 +0000)
BUG START 0b9c739
added additional tests for the default deserialization of dates. (Mon Oct 6 22:00:04 2008 +0000)
BUG START 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style. (Mon Oct 13 18:40:20 2008 +0000)
FIX bc1e5c5
Ensured that custom deserializer is invoked with actual type returned for field values. Fixed a bug where a top-level object was constructed with default values even when the custom deserializer tried to set it to null.
2009-10-09
Line 53 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
Line 73 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
Line 74 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
Line 75 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
Line 76 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
...and more
BUG START cc90a68
Fixed issue 68 by providing support to override default type adapters for primitive types. Added a visitFieldUsingCustomHandler method to handle this in the visitors. (Fri Oct 31 00:19:58 2008 +0000)
BUG START 338758a
implemented support for deserialization to deserialize to more specific type if an instance creator returns a sub-class. (Fri Oct 9 18:16:16 2009 +0000)
BUG START 536a968
Disabled escaping of single quote since it is valid for JSON (though invalid for JavaScript). Added null checks in contexts since the custom type adapter can pass nulls. (Tue Oct 6 17:10:52 2009 +0000)
BUG START 1da3ef9
Ensured that a custom handler is not visited during deserialization. Ensured that JsonTreeNavigator can handle null values as children of JsonObject. This is now possible since Gson exposes toJson(JsonElement) method to which the user can pass a JsonElement with null values. (Tue Oct 6 01:15:28 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 2bddd57
Code review changes from r476 (Thu Oct 8 23:23:52 2009 +0000)
BUG START 9a69560
During serialization, we now dont call custom serializers the field is null. During deserialization, we do not call custom deserializer if the field is to be set to null. Moreover, changed the logic to set fields to null only if explicitly indicated in the incoming Json. This is different from past behavior where all fields not mentioned in incoming Json were set to null. Now they are set to whatever the default constructor will do. (Fri Nov 14 20:52:57 2008 +0000)
FIX de6af44
Minor fixes.
2009-10-09
Line 25 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 187 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 188 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 19 in gson/src/test/java/com/google/gson/functional/CustomSerializerTest.java
Line 20 in gson/src/test/java/com/google/gson/functional/CustomSerializerTest.java
...and more
BUG START 60ef777
Fixed custom serilization invocation to correctly handle nulls returned by custom serializer. (Fri Oct 9 15:28:05 2009 +0000)
BUG START b634804
Ensured that a base class custom serializer is run when the type is specified explicitly during serialization. For all other situations, ensured that the actual type of the object is taken into consideration while serializing. First a custom handler corresponding to the actual type is looked up, then a custom handler for the specified type. Created some serialization specific tests regarding custom serializers. Revised some tests to use toJsonTree for better asserts instead of string matching. (Thu Oct 8 19:28:53 2009 +0000)
FIX 60ef777
Fixed custom serilization invocation to correctly handle nulls returned by custom serializer.
2009-10-09
Line 187 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 31 in gson/src/test/java/com/google/gson/functional/CustomSerializerTest.java
Line 32 in gson/src/test/java/com/google/gson/functional/CustomSerializerTest.java
BUG START ff74224
Revised equals and hashcode of ObjectTypePair to ensure reference equality of object instead of value equality. Improved JavaDocs for various 1.4 API methods. (Mon Oct 5 18:17:52 2009 +0000)
BUG START b634804
Ensured that a base class custom serializer is run when the type is specified explicitly during serialization. For all other situations, ensured that the actual type of the object is taken into consideration while serializing. First a custom handler corresponding to the actual type is looked up, then a custom handler for the specified type. Created some serialization specific tests regarding custom serializers. Revised some tests to use toJsonTree for better asserts instead of string matching. (Thu Oct 8 19:28:53 2009 +0000)
FIX 6d60a7d
Fixed comments from r486.
2009-10-09
Line 57 in gson/src/main/java/com/google/gson/JsonObject.java
BUG START 93b0008
Adding restrictions on the JsonElements to disallow Java "null"s. (Thu Oct 8 22:03:08 2009 +0000)
FIX e9a2a1d
Fixed Issue 153 by using a stack to keep track of first elements at any level.
2009-09-29
Line 146 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 147 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 151 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 157 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 158 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
...and more
BUG START 1cad54f
Fix pretty printing of interlacing arrays and objects. (Sat Sep 27 19:01:45 2008 +0000)
BUG START 9bcbb4c
Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer (Wed Nov 26 19:13:14 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 3e7ebf8
Fixed issue 156. Added support for serializing an object field (or array elements) as per its actual type. Refactored inheritance related tests into its own test class. Added regression tests for issue 156.
2009-09-25
Line 79 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 101 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 102 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 103 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 104 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
...and more
BUG START f6a2780
test for Issue 51 for inner classes serialization and deserialization. (Mon Oct 13 19:49:05 2008 +0000)
BUG START 5631132
Fixed Issue 54 to enable serialization of fields that are declared of type Object. (Mon Oct 13 21:12:41 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 745c8e2
Fixed issue 58 by disabling the use of field value actual type for all cases except when it is marked as Object. (Tue Oct 14 18:55:59 2008 +0000)
BUG START 82771f0
removed Java 1.5 warnings (Mon Aug 31 17:51:47 2009 +0000)
BUG START 18b301d
- Serializing of Object arrays. - Fixed incorrect warning (Tue Sep 22 19:04:27 2009 +0000)
BUG START 4fc6400
Fixed the test that broke while fixing issue 100 in r394 by using a TreeSet for SortedSets and HashSet for other kind of sets. (Thu Mar 12 18:17:14 2009 +0000)
BUG START 3b0f8f4
Removed all the JDK warnings about unused fields in test classes or unused constructors for use by Gson or instanceof calls on parameterized types. (Wed Sep 23 17:45:16 2009 +0000)
FIX 19ae6c0
Fixed issue 162 by making default date adapter thread-safe by synchronizing serialize() and deserialize() methods.
2009-09-25
Line 57 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 58 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 237 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 241 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 242 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style. (Mon Oct 13 18:40:20 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX c6f762f
Fix Warnings
2009-09-23
Line 57 in gson/src/test/java/com/google/gson/ExposeAnnotationBasedExclusionStrategyTest.java
Line 58 in gson/src/test/java/com/google/gson/ExposeAnnotationBasedExclusionStrategyTest.java
Line 59 in gson/src/test/java/com/google/gson/SerializedNameAnnotationInterceptingNamingPolicyTest.java
Line 232 in gson/src/test/java/com/google/gson/TypeInfoFactoryTest.java
Line 233 in gson/src/test/java/com/google/gson/TypeInfoFactoryTest.java
...and more
BUG START b44bbbf
Added an API method to create a tree of JsonElement from an object. (Fri Apr 3 21:33:01 2009 +0000)
BUG START 9245beb
For the Collection and Map types, using ObjectConstructor to create instance instead of hard-coding a specific type. This helps is handling cases where the user is using their own subclass of Collection or Map. (Fri Nov 14 02:11:46 2008 +0000)
BUG START eaa43b7
Added a custom type adapter for Collection class. We will migrate the code to use it instead of special cases for collections all over. This type adapter is called at a few places already. (Thu Nov 13 23:40:10 2008 +0000)
BUG START 3d1f725
Added tests to reproduce issue 103. The tests pass at the moment, so we need more information in the bugreport. (Thu Mar 12 01:04:30 2009 +0000)
BUG START fc65667
Add support for wildcard type on Maps, Collections and other parameterized types. (Sun Dec 14 07:12:04 2008 +0000)
BUG START 646d94d
test for issue 58 (Tue Oct 14 18:54:34 2008 +0000)
BUG START f6a2780
test for Issue 51 for inner classes serialization and deserialization. (Mon Oct 13 19:49:05 2008 +0000)
BUG START 5631132
Fixed Issue 54 to enable serialization of fields that are declared of type Object. (Mon Oct 13 21:12:41 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 90a4619
Minor fixes for pretty printing. (Sun Jan 11 05:01:23 2009 +0000)
BUG START a82c400
Fix warnings. (Sun Nov 30 00:47:07 2008 +0000)
BUG START c98d7bc
Fixed issue 66 to allow escaped slash ( \/) as a valid Json escaped character. Changed Gson version to 1.2.3. (Wed Oct 29 23:31:13 2008 +0000)
FIX fdcd394
Fixed issue 147. Integral values (byte, short, integer, long, BigInteger) are now comparable to each other. Floating point values (float, double, BigDecimal) are now comparable to each other.
2009-09-23
Line 347 in gson/src/main/java/com/google/gson/JsonPrimitive.java
BUG START f418ab6
Implementing hashcode and equals for JsonPrimitives as value type equality. (Fri Apr 3 21:24:38 2009 +0000)
FIX 29ab864
Fixed bug 158
2009-09-23
Line 446 in gson/src/main/java/com/google/gson/Gson.java
BUG START abf4ab2
Fix project so it still compiles with JDK 1.5. (Tue May 19 17:51:02 2009 +0000)
FIX c5812bb
Fixed Incorrect JavaDoc
2009-09-22
Line 55 in gson/src/main/java/com/google/gson/Gson.java
Line 56 in gson/src/main/java/com/google/gson/Gson.java
Line 61 in gson/src/main/java/com/google/gson/Gson.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 18b301d
- Serializing of Object arrays. - Fixed incorrect warning
2009-09-22
Line 322 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 111 in gson/src/main/java/com/google/gson/ObjectNavigator.java
Line 118 in gson/src/main/java/com/google/gson/ObjectNavigator.java
Line 119 in gson/src/main/java/com/google/gson/ObjectNavigator.java
Line 141 in gson/src/main/java/com/google/gson/ObjectNavigator.java
...and more
BUG START cc90a68
Fixed issue 68 by providing support to override default type adapters for primitive types. Added a visitFieldUsingCustomHandler method to handle this in the visitors. (Fri Oct 31 00:19:58 2008 +0000)
BUG START f6a2780
test for Issue 51 for inner classes serialization and deserialization. (Mon Oct 13 19:49:05 2008 +0000)
BUG START 5631132
Fixed Issue 54 to enable serialization of fields that are declared of type Object. (Mon Oct 13 21:12:41 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 82771f0
removed Java 1.5 warnings (Mon Aug 31 17:51:47 2009 +0000)
BUG START 9dfa454
Fixed issue 63 where Gson could not operate in a thread-safe manner. Resolved the issue by recreating ObjectNavigatorFactory for each call instead of reusing the same object everywhere. This is needed since ObjectNavigatorFactory had MemoryRefStack that was incorrectly being shared across calls. (Mon Oct 20 20:09:42 2008 +0000)
BUG START d6d1dae
Submitting @Expose tests with interfaces. (Wed Nov 26 21:46:55 2008 +0000)
BUG START 2c25fdd
Added a test to measure performance of Gson on large collections. Gson's parser handled a collection of 1.4 million objects for serialization. For deserialization, the numbers were lower and Gson parser gave a stack overflow beyond a collection of 87,000 objects. (Tue Mar 3 22:20:59 2009 +0000)
BUG START 64172d1
Added support to serialize and deserialize array of java.lang.Object when the content is a primitive type. (Mon Jul 27 23:24:23 2009 +0000)
BUG START c9e4809
Do not overwrite a duplicate field value during seriailzation if one those fields is null. (Thu Nov 27 00:50:50 2008 +0000)
FIX c13fc56
Fixed indentation and simplified equals method as per code review comments on r419
2009-08-18
Line 354 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 355 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 356 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 359 in gson/src/main/java/com/google/gson/JsonPrimitive.java
Line 360 in gson/src/main/java/com/google/gson/JsonPrimitive.java
...and more
BUG START f418ab6
Implementing hashcode and equals for JsonPrimitives as value type equality. (Fri Apr 3 21:24:38 2009 +0000)
FIX b7cbfc5
Fixed Issue 141 by adding new APIs for writing out JSON string representation for JsonElements.
2009-08-07
Line 276 in gson/src/main/java/com/google/gson/Gson.java
Line 322 in gson/src/main/java/com/google/gson/Gson.java
Line 324 in gson/src/main/java/com/google/gson/Gson.java
Line 325 in gson/src/main/java/com/google/gson/Gson.java
Line 326 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START b44bbbf
Added an API method to create a tree of JsonElement from an object. (Fri Apr 3 21:33:01 2009 +0000)
BUG START 9bcbb4c
Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer (Wed Nov 26 19:13:14 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 4f0728f
Fixed issue 126 by ensuring that parameterized type deduction is not done for transient fields.
2009-06-02
Line 136 in gson/src/main/java/com/google/gson/ObjectNavigator.java
Line 137 in gson/src/main/java/com/google/gson/ObjectNavigator.java
Line 222 in gson/src/test/java/com/google/gson/common/TestTypes.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX abf4ab2
Fix project so it still compiles with JDK 1.5.
2009-05-19
Line 411 in gson/src/main/java/com/google/gson/Gson.java
Line 414 in gson/src/main/java/com/google/gson/Gson.java
Line 22 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
BUG START 6e59e50
Refactored the Async parser interface out of JsonParser into a new class JsonParserAsync. Updated the JsonParser to detect Eof and return a null instead of throwing a ParseException. (Thu May 14 20:18:45 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX f2fd0b7
Fixed the typo in OSGi Bundle manifest and updated the version number to 1.4 to match the revised Gson version.
2009-05-08
Line 76 in gson/pom.xml
Line 77 in gson/pom.xml
Line 84 in gson/pom.xml
BUG START 6b39f52
Added OSGi Bundle manifest headers to enable use of Gson in OSGi environments. Fixes issue 120 (Tue May 5 23:31:43 2009 +0000)
FIX 6b39f52
Added OSGi Bundle manifest headers to enable use of Gson in OSGi environments. Fixes issue 120
2009-05-05
Line 61 in gson/pom.xml
Line 73 in gson/pom.xml
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 727dbcd
Fixed javadoc for toString() since we do not output valid Json for strings at the moment.
2009-03-20
Line 311 in gson/src/main/java/com/google/gson/JsonElement.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX b2b2e5d
Implemented enhancement request from issue 42 by supporting a new GsonBuilder setting generateNonExecutableJson() that prefixes the generated JSON with some special text that makes the output non-executable javascript. Gson now recognizes this special text in the input while parsing the JSON in fromJson and filters it out, if present.
2009-03-17
Line 145 in gson/src/main/java/com/google/gson/Gson.java
Line 151 in gson/src/main/java/com/google/gson/Gson.java
Line 433 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 13 in gson/src/main/java/com/google/gson/JsonParserImpl.java
Line 22 in gson/src/main/java/com/google/gson/JsonParserImpl.java
...and more
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 9dfa454
Fixed issue 63 where Gson could not operate in a thread-safe manner. Resolved the issue by recreating ObjectNavigatorFactory for each call instead of reusing the same object everywhere. This is needed since ObjectNavigatorFactory had MemoryRefStack that was incorrectly being shared across calls. (Mon Oct 20 20:09:42 2008 +0000)
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START 16be716
Updated Gson grammar to support floating point numbers without a +/- after the E. So, 1.234567899E8 is now accepted by Gson as a valid floating point number. This fixed the bug http://code.google.com/p/google-gson/issues/detail?id=94 (Thu Mar 5 23:05:29 2009 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX 4fc6400
Fixed the test that broke while fixing issue 100 in r394 by using a TreeSet for SortedSets and HashSet for other kind of sets.
2009-03-12
Line 183 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 275 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 276 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 277 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
Line 406 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
BUG START a595032
Fixed issue 100 by adding support for deserialization of collections of elements that do not implement Comparable. (Thu Mar 12 01:59:48 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX a595032
Fixed issue 100 by adding support for deserialization of collections of elements that do not implement Comparable.
2009-03-12
Line 82 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 181 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 182 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 782 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 783 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 8f45683
Fixed Issue 104 by making FieldNamingStrategy to be public and allowing FieldNamingStrategy to be set in GsonBuilder
2009-03-11
Line 28 in gson/src/main/java/com/google/gson/FieldNamingStrategy.java
Line 194 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 197 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 198 in gson/src/main/java/com/google/gson/GsonBuilder.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 16be716
Updated Gson grammar to support floating point numbers without a +/- after the E. So, 1.234567899E8 is now accepted by Gson as a valid floating point number. This fixed the bug http://code.google.com/p/google-gson/issues/detail?id=94
2009-03-05
Line 41 in gson/pom.xml
Line 141 in gson/pom.xml
Line 144 in gson/pom.xml
Line 10 in gson/src/main/java/com/google/gson/JsonParserImpl.java
Line 13 in gson/src/main/java/com/google/gson/JsonParserImpl.java
...and more
BUG START 1e5f174
fixed some paths. (Mon Sep 1 13:36:37 2008 +0000)
BUG START 228fbb9
reverting this file since we do not want to generate parser everytime maven is run. (Wed Feb 4 02:02:31 2009 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 362a94e
Added deserialization support for Double NaN, Infinity, and -Infinity (Fri Dec 19 22:21:35 2008 +0000)
BUG START 59be02d
Added support for accepting Object field names without quotes. Issue 41. (Wed Nov 26 17:52:46 2008 +0000)
BUG START 2c7cc62
Exposed API for JsonParser and added methods to Gson to deserialize from a parse tree. (Wed Feb 4 01:56:28 2009 +0000)
FIX 18005bb
using consistent method name prefixes.
2009-03-03
Line 101 in gson/src/test/java/com/google/gson/metrics/PerformanceTest.java
Line 113 in gson/src/test/java/com/google/gson/metrics/PerformanceTest.java
BUG START 2c25fdd
Added a test to measure performance of Gson on large collections. Gson's parser handled a collection of 1.4 million objects for serialization. For deserialization, the numbers were lower and Gson parser gave a stack overflow beyond a collection of 87,000 objects. (Tue Mar 3 22:20:59 2009 +0000)
FIX 764e4d9
Performance fixes after doing some profiling.
2009-01-20
Line 432 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 21 in gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java
Line 32 in gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java
Line 33 in gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java
Line 34 in gson/src/main/java/com/google/gson/DisjunctionExclusionStrategy.java
...and more
BUG START eaa43b7
Added a custom type adapter for Collection class. We will migrate the code to use it instead of special cases for collections all over. This type adapter is called at a few places already. (Thu Nov 13 23:40:10 2008 +0000)
BUG START 6a80791
Code cleanup and some minor performance fixes. (Tue Jan 20 01:36:54 2009 +0000)
BUG START 54a4807
Add the ability to configure Gson to exclude serializing and deserializing of all "Inner Classes". (Sun Dec 28 02:00:31 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 458f2ba
Added special serialization of "Long". Now the client has the ability to output a long field as a JSON "String". This is useful for JavaScript clients that need to handle long values. (Sun Dec 28 03:23:36 2008 +0000)
BUG START 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style. (Mon Oct 13 18:40:20 2008 +0000)
FIX 6a80791
Code cleanup and some minor performance fixes.
2009-01-20
Line 457 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 458 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 29 in gson/src/main/java/com/google/gson/Gson.java
Line 86 in gson/src/main/java/com/google/gson/Gson.java
Line 87 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START b90228d
Enable serialization of nulls within Maps. (Sun Nov 30 23:01:14 2008 +0000)
BUG START 9245beb
For the Collection and Map types, using ObjectConstructor to create instance instead of hard-coding a specific type. This helps is handling cases where the user is using their own subclass of Collection or Map. (Fri Nov 14 02:11:46 2008 +0000)
BUG START 73d93e3
Provide a setting to allow a client to skip the escaping of special HTML characters. (Sun Dec 28 23:05:22 2008 +0000)
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START fc65667
Add support for wildcard type on Maps, Collections and other parameterized types. (Sun Dec 14 07:12:04 2008 +0000)
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 90a4619
Minor fixes for pretty printing.
2009-01-11
Line 67 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 73 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 74 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 88 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 99 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
...and more
BUG START d61e754
Added tests for explicit serialization of null array, collection and string fields with serializeNulls set to true. (Fri Oct 10 22:31:19 2008 +0000)
BUG START 3f53e8b
Added tests for Issue 68 (Thu Oct 30 01:45:44 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX cc33447
Fixed issue 87 by adding support for deserialization of java.util.Properties
2008-12-31
Line 30 in gson/src/main/java/com/google/gson/TypeInfoMap.java
Line 31 in gson/src/main/java/com/google/gson/TypeInfoMap.java
Line 33 in gson/src/main/java/com/google/gson/TypeInfoMap.java
Line 38 in gson/src/main/java/com/google/gson/TypeInfoMap.java
Line 39 in gson/src/main/java/com/google/gson/TypeInfoMap.java
...and more
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 6fe2fdf
test to reproduce issue 87 (Wed Dec 31 00:43:40 2008 +0000)
FIX 911a92b
Removal of all unnecessary "Default" InstanceCreators. While refactoring the code, I found a bug that these InstanceCreators were being called when inside an "Array". This bug is fixed in this change.
2008-12-27
Line 72 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 79 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 167 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 169 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 170 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
...and more
BUG START 0d8150f
Major restructuring of Primitve type serialization and deserializtion. From the end-user's point of view there should be no difference other than the user can now override the default serialization/deserialization their own custom type adapter (not sure if there is a real use-case out there for this). (Sat Nov 15 02:26:57 2008 +0000)
BUG START 9245beb
For the Collection and Map types, using ObjectConstructor to create instance instead of hard-coding a specific type. This helps is handling cases where the user is using their own subclass of Collection or Map. (Fri Nov 14 02:11:46 2008 +0000)
BUG START eaa43b7
Added a custom type adapter for Collection class. We will migrate the code to use it instead of special cases for collections all over. This type adapter is called at a few places already. (Thu Nov 13 23:40:10 2008 +0000)
BUG START 7da18b9
fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. (Tue Sep 16 18:28:31 2008 +0000)
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START cf2a457
Removed the TypeAdapter object from GSON now that the primitive objects and fields are created by a custom Type Adapter. (Sat Nov 15 05:11:28 2008 +0000)
FIX bc6ec50
incorporated fixes from code review of r341
2008-12-23
Line 353 in gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
Line 375 in gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
Line 405 in gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
Line 427 in gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
Line 457 in gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
...and more
BUG START 51881c7
Added a GsonBuilder setting to enable serialization of special double types, NaN, Infinity, and -Infinity. (Sat Dec 20 01:26:14 2008 +0000)
FIX d165537
Performing automatic refactoring using the IDE tools which does not take resources into consideration. This fixes the JavaCC Parser definition.
2008-12-02
Line 81 in gson/src/main/javacc/JsonParser.jj
BUG START b90228d
Enable serialization of nulls within Maps. (Sun Nov 30 23:01:14 2008 +0000)
FIX b9e81f9
Fixed warnings and updated some JavaDoc.
2008-12-01
Line 31 in gson/src/main/java/com/google/gson/JsonNull.java
Line 62 in gson/src/main/java/com/google/gson/JsonNull.java
Line 142 in gson/src/test/java/com/google/gson/functional/NullObjectAndFieldTest.java
BUG START b90228d
Enable serialization of nulls within Maps. (Sun Nov 30 23:01:14 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX a82c400
Fix warnings.
2008-11-30
Line 76 in gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
Line 77 in gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
Line 81 in gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
Line 82 in gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
Line 88 in gson/src/test/java/com/google/gson/functional/NamingPolicyTest.java
...and more
BUG START c9e4809
Do not overwrite a duplicate field value during seriailzation if one those fields is null. (Thu Nov 27 00:50:50 2008 +0000)
FIX 9bcbb4c
Fixed issue 52 by switching Gson.toJson methods to use Appendable instead of java.io.Writer
2008-11-26
Line 53 in gson/src/main/java/com/google/gson/DelegatingJsonElementVisitor.java
Line 57 in gson/src/main/java/com/google/gson/DelegatingJsonElementVisitor.java
Line 61 in gson/src/main/java/com/google/gson/DelegatingJsonElementVisitor.java
Line 65 in gson/src/main/java/com/google/gson/DelegatingJsonElementVisitor.java
Line 69 in gson/src/main/java/com/google/gson/DelegatingJsonElementVisitor.java
...and more
BUG START 9dfa454
Fixed issue 63 where Gson could not operate in a thread-safe manner. Resolved the issue by recreating ObjectNavigatorFactory for each call instead of reusing the same object everywhere. This is needed since ObjectNavigatorFactory had MemoryRefStack that was incorrectly being shared across calls. (Mon Oct 20 20:09:42 2008 +0000)
BUG START 1cad54f
Fix pretty printing of interlacing arrays and objects. (Sat Sep 27 19:01:45 2008 +0000)
BUG START 9245beb
For the Collection and Map types, using ObjectConstructor to create instance instead of hard-coding a specific type. This helps is handling cases where the user is using their own subclass of Collection or Map. (Fri Nov 14 02:11:46 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX b6f767b
Fix warning in code
2008-11-15
Line 34 in gson/src/test/java/com/google/gson/PrimitiveTypeAdapter.java
BUG START cf2a457
Removed the TypeAdapter object from GSON now that the primitive objects and fields are created by a custom Type Adapter. (Sat Nov 15 05:11:28 2008 +0000)
FIX cc90a68
Fixed issue 68 by providing support to override default type adapters for primitive types. Added a visitFieldUsingCustomHandler method to handle this in the visitors.
2008-10-31
Line 146 in gson/src/main/java/com/google/gson/Gson.java
Line 147 in gson/src/main/java/com/google/gson/Gson.java
Line 148 in gson/src/main/java/com/google/gson/Gson.java
Line 41 in gson/src/main/java/com/google/gson/JsonDeserializationVisitor.java
Line 194 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
...and more
BUG START 70c7728
Wrote a test that invokes a custom deserializer for a wrapper primitive type. (Thu Oct 30 18:26:16 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX c98d7bc
Fixed issue 66 to allow escaped slash ( \/) as a valid Json escaped character. Changed Gson version to 1.2.3.
2008-10-29
Line 7 in gson/pom.xml
Line 1 in gson/src/main/java/com/google/gson/JsonParser.java
Line 2 in gson/src/main/java/com/google/gson/JsonParser.java
Line 3 in gson/src/main/java/com/google/gson/JsonParser.java
Line 4 in gson/src/main/java/com/google/gson/JsonParser.java
...and more
BUG START 1abf693
Fix for Issue 55 where GSON was unable to deserialize JSON with single quotes (') used for field name/values. Gson now supports different fields with-in the JSON to use either single quote or double quote. However, a single field name or value must use ' or "" to delimit itself. (Fri Oct 10 02:53:54 2008 +0000)
BUG START 0acb151
A test to reproduce Gson concurrency bug. See issue 63. (Mon Oct 20 19:48:38 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
BUG START 7aa1d0f
Reusing the JsonNull instance everywhere instead of recreating it. This is a minor optimization, which is possible because JsonNull is a stateless object. (Fri Oct 24 20:35:22 2008 +0000)
BUG START d74ecbf
Updated JsonParser to use Token to match strings instead of productions. This enables Gson to handle much larger strings (~10s of MB) than previously possible (<100kb). This also reduces memory and stack requirements, and increases Gson performance as well. (Fri Oct 10 21:52:02 2008 +0000)
BUG START 9f5a208
updated Gson version to 1.2.2 Added a test to ensure that CustomTypeAdapters are not applied automatically for SubClasses. (Tue Oct 14 19:37:33 2008 +0000)
BUG START 9726b4e
updated Gson version number to 1.2.1 (Mon Oct 13 22:09:15 2008 +0000)
FIX 9dfa454
Fixed issue 63 where Gson could not operate in a thread-safe manner. Resolved the issue by recreating ObjectNavigatorFactory for each call instead of reusing the same object everywhere. This is needed since ObjectNavigatorFactory had MemoryRefStack that was incorrectly being shared across calls.
2008-10-20
Line 91 in gson/src/main/java/com/google/gson/Gson.java
Line 139 in gson/src/main/java/com/google/gson/Gson.java
Line 149 in gson/src/main/java/com/google/gson/Gson.java
Line 150 in gson/src/main/java/com/google/gson/Gson.java
Line 155 in gson/src/main/java/com/google/gson/Gson.java
...and more
BUG START 0acb151
A test to reproduce Gson concurrency bug. See issue 63. (Mon Oct 20 19:48:38 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 745c8e2
Fixed issue 58 by disabling the use of field value actual type for all cases except when it is marked as Object.
2008-10-14
Line 127 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 130 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 131 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 132 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 133 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
...and more
BUG START 5631132
Fixed Issue 54 to enable serialization of fields that are declared of type Object. (Mon Oct 13 21:12:41 2008 +0000)
FIX 5631132
Fixed Issue 54 to enable serialization of fields that are declared of type Object.
2008-10-13
Line 374 in gson/src/test/java/com/google/gson/functional/ObjectTest.java
BUG START f6a2780
test for Issue 51 for inner classes serialization and deserialization. (Mon Oct 13 19:49:05 2008 +0000)
FIX 2b9fd47
Fixed issue 53 where default date instances were not getting serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style.
2008-10-13
Line 55 in gson/src/main/java/com/google/gson/DefaultTypeAdapters.java
Line 120 in gson/src/main/java/com/google/gson/Gson.java
Line 326 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 340 in gson/src/main/java/com/google/gson/GsonBuilder.java
Line 347 in gson/src/main/java/com/google/gson/GsonBuilder.java
...and more
BUG START 0b9c739
added additional tests for the default deserialization of dates. (Mon Oct 6 22:00:04 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX cdd5163
fix for bug 56 where Gson wasn't serialization null fields of type string, collection and arrays properly even when serializeNulls was set.
2008-10-10
Line 83 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 90 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 154 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
Line 155 in gson/src/main/java/com/google/gson/JsonSerializationVisitor.java
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 1abf693
Fix for Issue 55 where GSON was unable to deserialize JSON with single quotes (') used for field name/values. Gson now supports different fields with-in the JSON to use either single quote or double quote. However, a single field name or value must use ' or "" to delimit itself.
2008-10-10
Line 21 in gson/src/main/java/com/google/gson/JsonParser.java
Line 24 in gson/src/main/java/com/google/gson/JsonParser.java
Line 29 in gson/src/main/java/com/google/gson/JsonParser.java
Line 30 in gson/src/main/java/com/google/gson/JsonParser.java
Line 34 in gson/src/main/java/com/google/gson/JsonParser.java
...and more
BUG START 427c17a
added a test for checking if GSON can parse JSON that uses single quotes instead of double quotes for various field values. (Fri Oct 10 02:32:50 2008 +0000)
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 1cad54f
Fix pretty printing of interlacing arrays and objects.
2008-09-27
Line 133 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 141 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 144 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 153 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
Line 158 in gson/src/main/java/com/google/gson/JsonPrintFormatter.java
...and more
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)
FIX 1e5f174
fixed some paths.
2008-09-01
Line 16 in gson/pom.xml
Line 33 in gson/pom.xml
Line 34 in gson/pom.xml
Line 35 in gson/pom.xml
BUG START 57d1f32
moved gson as a project under trunk (Mon Sep 1 03:13:32 2008 +0000)