Jesse Wilson
4816941f0d
Address code review comments on r1154
2012-07-02 20:32:38 +00:00
Inderjeet Singh
ae9e63fc54
using ${project.version} in MANIFEST.MF instead of hardcoding version numbers.
2012-07-02 19:20:35 +00:00
Inderjeet Singh
ccaf531b36
Updated version to 2.3 in Export-Package
2012-07-02 19:17:50 +00:00
Inderjeet Singh
6575cdebca
When EOF is encountered prematurely, Streams.parse() (and JsonParser) now throw JsonSyntaxException.
2012-07-02 18:36:54 +00:00
Inderjeet Singh
582b0a0c9c
Fixed issue 443 by relying on Streams.parse() to return a JsonNull on empty documents and throw a JsonParseException otherwise.
2012-06-30 18:48:11 +00:00
Jesse Wilson
1c7aee40f3
Implement Flushable.
2012-06-30 02:46:26 +00:00
Jesse Wilson
dc4e43bb23
Permit users to define type adapters for primitive types and strings.
...
Also expose an API to get the field naming strategy.
2012-06-30 02:37:49 +00:00
Inderjeet Singh
c3ada66749
2012-06-27 01:54:31 +00:00
Inderjeet Singh
7b329df351
2.2.1 javadocs
2012-05-11 18:52:43 +00:00
Inderjeet Singh
34a93c4049
[maven-release-plugin] prepare for next development iteration
2012-05-11 18:41:20 +00:00
Inderjeet Singh
ddbd0dff22
[maven-release-plugin] prepare release gson-2.2.1
2012-05-11 18:41:12 +00:00
Inderjeet Singh
90c6b29f4d
revised to 2.2.1
2012-05-11 18:39:29 +00:00
Inderjeet Singh
e9b576c456
removed unused import
2012-05-06 07:19:23 +00:00
Inderjeet Singh
96a0fec6a1
Gson 2.2 Javadocs
2012-05-06 04:42:38 +00:00
Inderjeet Singh
61257f9b1c
[maven-release-plugin] prepare for next development iteration
2012-05-06 00:31:39 +00:00
Inderjeet Singh
7129115986
[maven-release-plugin] prepare release gson-2.2
2012-05-06 00:30:39 +00:00
Inderjeet Singh
1492dd7d36
Preparing for release: updated export manifest to 2.2
2012-05-05 23:58:44 +00:00
Inderjeet Singh
7a5cef9305
Revised to the new name getDelegateAdapter.
2012-04-14 19:04:14 +00:00
Inderjeet Singh
83e5a4937c
Renamed Gson.getNextAdapter to getDelegateAdapter.
...
Deleted testParameterizedMapSubclassDeserialization which we decided to not fix.
Added simple tests for getDelegateAdapter
2012-04-12 18:49:27 +00:00
Jesse Wilson
392f29e859
Include protected members in Javadoc.
...
Fixes issue 430.
2012-04-12 18:34:17 +00:00
Jesse Wilson
3df2db1f16
Don't permit a type adapter for String to be registered.
2012-04-12 18:27:48 +00:00
Jesse Wilson
7b61e784c0
Remove testParameterizedMapSubclassDeserialization that never passed. We'll eventually add an equivalent to the extras/ package.
2012-04-12 18:15:56 +00:00
Jesse Wilson
6d351fea07
Fix a documentation typo.
...
Fixes bug 423.
2012-04-12 18:09:07 +00:00
Jesse Wilson
a991e54157
Make fewer calls to out.write() when serializing strings. On one Android test, this improved serialization time of some documents by 83%.
...
TWEETS
run vm htmlSafe ms linear runtime %
Before app_process true 68.7 ============================== 100%
After app_process true 35.9 =============== 52%
READER_LONG
run vm htmlSafe ms linear runtime %
Before app_process true 439.0 ============================== 100%
After app_process true 74.5 ===== 17%
2012-04-12 13:24:37 +00:00
Inderjeet Singh
c890e31bba
Simplified pom.xml by deleting plugins that we dont use.
2012-03-26 21:44:29 +00:00
Inderjeet Singh
72640e773b
Updated version numbers for various maven artifacts
2012-03-26 21:39:18 +00:00
Jesse Wilson
9be0fd9ecc
Make the BigDecimal and BigInteger type adapters user-overrideable.
2012-03-18 17:55:15 +00:00
Inderjeet Singh
5e3f5a6bbe
Ensuring that the hash is unpredictable and well distributed.
...
We achieve this by using the same algorithm as the Perl version, but this implementation
is being written from scratch for license compliance.
2012-03-15 22:27:55 +00:00
Inderjeet Singh
14ebcc4ead
fixed eclipse warnings
2012-03-11 21:43:38 +00:00
Inderjeet Singh
15c2ae7548
Updated map subclass deserialization test to illustrate a failing condition.
...
Gson currently uses LinkedHashMap for an instance if a Map subclass does not define a default constructor.
2012-03-11 21:37:13 +00:00
Jesse Wilson
4c629347da
Only support string keys in string map. This rev passed all 655 applicable map tests in the Guava collections test suite.
2012-03-11 17:34:46 +00:00
Jesse Wilson
751c69c655
Support null values in StringMap
2012-03-11 15:19:01 +00:00
Jesse Wilson
ad3489f557
First steps to StringMap, an alternative to LinkedHashmap.
2012-03-11 13:54:41 +00:00
Jesse Wilson
15e7819e9a
Fix testStringEndingInSlash by fixing nextNonWhitespace to always return the character at buffer[pos-1].
2012-02-16 22:49:53 +00:00
Jesse Wilson
2c8bec27d4
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.
...
I'd prefer to not support multiple top-level values, but we support it in JsonReader and it's easier to be consistent. Kevin Hayen's patch pointed me in the right direction here, but I needed to do more work to cover some of the edge cases.
Fixes issue 397.
2012-02-12 20:42:16 +00:00
Jesse Wilson
5c978948a0
Remove some dead code.
2012-02-11 20:16:21 +00:00
Jesse Wilson
f40ac23e88
Write a test recommended by missing code coverage on TypeAdapter
2012-02-11 20:16:05 +00:00
Jesse Wilson
7b75efd09e
Write some tests prescribed by missing code coverage. I found a bug where our nonexecute prefix code causes a problem.
2012-02-11 20:15:39 +00:00
Jesse Wilson
dd86d63436
Use inner classes for BigDecimal and BigInteger type adapters
2012-02-11 20:14:23 +00:00
Jesse Wilson
a0afec71ff
Test case to demonstrate no such crash as reported in issue 408.
2012-02-11 18:19:54 +00:00
Jesse Wilson
2e6b22fa2e
Test that GraphAdapterBuilder works with multiple entity types.
2012-01-01 15:57:29 +00:00
Jesse Wilson
efde6674e1
Test that GraphAdapterBuilder works with collections.
2012-01-01 15:48:01 +00:00
Jesse Wilson
bb8dca71c4
Restore ability of instance creators to create collection and map types. We inadvertently lost this in Gson 2.0 and 2.1. Nobody noticed!
2012-01-01 15:46:33 +00:00
Jesse Wilson
6cca23c172
Get GraphAdapterBuilder working for serialization and deserialization using InstanceCreators to get a sneak peek at a value under construction.
2012-01-01 13:42:44 +00:00
Jesse Wilson
d4a1e49e46
Delete some obsolete TODOs
2012-01-01 12:42:48 +00:00
Jesse Wilson
796a381279
Kill GsonInternalAccess. Clients to this were all broken because nobody was ever assigning INSTANCE.
2012-01-01 12:42:20 +00:00
Jesse Wilson
323dfa0af5
Be strict in TypeAdapter's toJson/fromJson methods
2012-01-01 12:36:42 +00:00
Jesse Wilson
641590b5b6
Fill in some gaps in ExclusionStrategy's test.
...
Changes to GsonInternalAccess should have broken exclusion strategies, but didn't. Adding these tests cause the expected breaks.
2012-01-01 12:34:47 +00:00
Jesse Wilson
c4ea9a3d87
New Javadocs for Gson 2.1.
2011-12-31 20:53:38 +00:00
Jesse Wilson
caf64dbf55
Remove Javadocs without proper mime types set
2011-12-31 20:52:11 +00:00