Commit Graph

572 Commits

Author SHA1 Message Date
Joel Leitch
c9ee7adcc5 Start using JsonNull.INSTANCE everywhere and remove creation method. 2011-06-03 19:02:28 +00:00
Inderjeet Singh
8fd4072f9b fixed javadocs 2011-06-03 19:01:08 +00:00
Inderjeet Singh
60e7c481fd Added complex map serialization tests in case the Map is defined with TypeVariables. 2011-05-30 09:38:38 +00:00
Inderjeet Singh
61b9a2cb17 Moved field creation to the field declaration to avoid inadvertent change from LinkedHashMap to something else. 2011-05-30 09:01:45 +00:00
Inderjeet Singh
9531c662da suppressed deprecation warning. 2011-05-30 06:47:21 +00:00
Jesse Wilson
3d50a6b72a New failing test for RuntimeTypeAdapters! 2011-05-27 18:47:31 +00:00
Inderjeet Singh
3e324cc8a4 Added an example of using raw collection for serialization and deserialization with Gson. 2011-05-27 18:33:03 +00:00
Inderjeet Singh
44faec1eb1 removed the methods that return null for various getAs methods per discussions with Jesse and Joel. 2011-05-27 17:58:39 +00:00
Inderjeet Singh
2d186fbdcd Updated the working version of Gson to 1.8-SNAPSHOT as we have a bunch of API changes. 2011-05-25 16:57:22 +00:00
Inderjeet Singh
e79bcde8bf Using JsonNull.INSTANCE instead of JsonNull.createJsonNull() method 2011-05-25 16:55:57 +00:00
Inderjeet Singh
f2eb76eac9 removed deprecation warnings by using JsonNull.INSTANCE 2011-05-25 16:48:39 +00:00
Inderjeet Singh
5d31558428 eliminated maven compilation problems with JDK 5 2011-05-25 16:13:36 +00:00
Inderjeet Singh
540d36e4bd API Change: Implemented various getAs methods to return null. 2011-05-25 07:08:21 +00:00
Inderjeet Singh
5e2bc1b8f0 New Public API: Exposed the singleton instance for JsonNull. 2011-05-25 07:01:36 +00:00
Joel Leitch
572421b771 Open object construction in JsonDeserializationContext to leverage the same object construction as default gson deserialization. 2011-05-20 21:50:39 +00:00
Jesse Wilson
d93825ba72 First draft of RuntimeTypeAdapters 2011-05-14 02:04:17 +00:00
Inderjeet Singh
78327b95ee initial checkin for the extras project 2011-05-13 18:30:20 +00:00
Inderjeet Singh
b85daafb08 suppressed unchecked warning 2011-05-11 21:43:47 +00:00
Inderjeet Singh
0bcd1b341f 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.
2011-05-04 23:26:22 +00:00
Jesse Wilson
ce79e16f7a StringPooling. This makes things up to 20% faster on dalvikvm for some data sets. 2011-04-28 22:08:06 +00:00
Inderjeet Singh
824635158c 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.
2011-04-28 21:57:29 +00:00
Inderjeet Singh
a21ddcbe2f updated version of protobuf dependency 2011-04-22 18:29:36 +00:00
Joel Leitch
4efeef1893 Make test a little more complex to show it actually fixed the bug. 2011-04-20 22:32:13 +00:00
Joel Leitch
f291c4d33e Fix a bunch of preserve-type issues:
- Issue 205
- Issue 294
- Issue 318
2011-04-20 22:27:51 +00:00
Joel Leitch
cf3615e38c Adding tests to verify 294. 2011-04-19 22:18:25 +00:00
Inderjeet Singh
e60274ed35 Added tests to ensure that subclass objects that are of a parameterized type are serialized per their declared type in lists or maps. 2011-04-19 20:49:48 +00:00
Inderjeet Singh
40045dc2e4 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.
2011-04-19 20:26:16 +00:00
Inderjeet Singh
93910a9d52 Updated javadoc links to point to oracle servers to avoid a redirect 2011-04-15 15:07:59 +00:00
Joel Leitch
d2cf574e86 Adding unit-tests to verify bugs. 2011-04-15 06:33:09 +00:00
Joel Leitch
e345feb438 Comments from r821 2011-04-14 18:54:09 +00:00
Joel Leitch
c894fb6c23 Default support for BitSet. As well, provide more flexibility on getAsBoolean for a JsonPrimitive. 2011-04-14 02:42:47 +00:00
Inderjeet Singh
4e99d66817 Updated the dependency to the current Gson trunk: 1.7.2-SNAPSHOT 2011-04-13 22:47:03 +00:00
Inderjeet Singh
3b22069823 Updated the dependency to the newly-released version of Gson, 1.7.1. 2011-04-13 22:46:32 +00:00
Inderjeet Singh
2ccf45226e revert pom.xml to the currently open version. 2011-04-13 21:05:32 +00:00
Inderjeet Singh
aa5ed432da Javadocs for release 1.7.1 2011-04-13 20:41:54 +00:00
Inderjeet Singh
7c9f87d700 [maven-release-plugin] prepare for next development iteration 2011-04-13 19:51:45 +00:00
Inderjeet Singh
3d6073a427 [maven-release-plugin] prepare release gson-1.7.1 2011-04-13 19:51:35 +00:00
Inderjeet Singh
5552d17d05 removed assembly-descriptor.xml from Gson jar 2011-04-13 18:26:51 +00:00
Inderjeet Singh
7be0882863 removed the Maven configuration files from Gson jar file 2011-04-13 18:10:57 +00:00
Joel Leitch
97d00f4930 Add test to verify issue 309. 2011-04-13 16:14:54 +00:00
Inderjeet Singh
9bfe443950 marked package private classes final 2011-04-13 15:57:11 +00:00
Joel Leitch
1c3d08794d Fixed typo. 2011-04-13 07:49:30 +00:00
Joel Leitch
f5d6b01ca6 Update the JavaDocs for 1.7. 2011-04-12 23:05:52 +00:00
Joel Leitch
5770be4ed2 More fixes to JavaDoc. 2011-04-12 22:03:15 +00:00
Inderjeet Singh
b014017916 [maven-release-plugin] prepare for next development iteration 2011-04-12 21:53:51 +00:00
Inderjeet Singh
def5862ad4 [maven-release-plugin] prepare release gson-1.7 2011-04-12 21:53:40 +00:00
Joel Leitch
6911d932a6 Updating License to contain the full text. 2011-04-12 21:21:39 +00:00
Inderjeet Singh
6f6893b20a added and updated version numbers for plugins 2011-04-12 18:14:50 +00:00
Joel Leitch
4917fc7f76 Lift restriction on naming when using the "@SerializedNamed" annotation.
Fix for Issue 290.
2011-04-12 17:29:19 +00:00
Inderjeet Singh
7f9762db63 Updated Maven dependencies and license notice in ProtoTypeAdapter. 2011-04-12 16:16:35 +00:00