Commit Graph

1089 Commits

Author SHA1 Message Date
Jesse Wilson
3361030766 Merge pull request #705 from google/627
Implemented equals and hashcode for LazilyParsedNumber to fix
2015-09-27 17:25:04 -04:00
Inderjeet Singh
96b2ada79a incorporated code review feedback: optimized LazilyParsedNumber.equals/hashcode() by utilizing the fact that value is never passed as null. 2015-09-27 13:58:01 -07:00
Jesse Wilson
9b6a381202 Merge pull request #707 from dushmis/master
typo
2015-09-27 10:51:25 -04:00
dushyant
2ecce94494 typo 2015-09-27 16:01:27 +05:30
inder123
8e1da9cf1a Merge pull request #706 from google/623
Fixed javadoc for JsonWriter as reported in
2015-09-26 18:11:07 -07:00
Inderjeet Singh
1e9004403c Fixed javadoc for JsonWriter as reported in
https://github.com/google/gson/issues/623
2015-09-26 18:10:00 -07:00
Inderjeet Singh
3aec173243 small reformatting 2015-09-26 18:02:12 -07:00
Inderjeet Singh
3daf585931 Implemented equals and hashcode for LazilyParsedNumber to fix
https://github.com/google/gson/issues/627
2015-09-26 17:58:13 -07:00
jwilson
93605e7145 Changelog fixes. 2015-09-26 19:47:17 -04:00
jwilson
40ba05529d Add a draft of a changelog. 2015-09-26 19:43:55 -04:00
Jake Wharton
b82e1b0931 Merge pull request #704 from google/jw/new-json-writer
Expose newJsonWriter wrapper instead of just options.
2015-09-26 19:26:16 -04:00
Jake Wharton
e81f3eba27 Expose newJsonWriter wrapper instead of just options.
This is more future proof to ensure that consumers holding on to TypeAdapters for efficiency can always encode JSON in the same way as if the Gson instance was used directly.
2015-09-26 19:19:38 -04:00
Jake Wharton
31f80d8659 Merge pull request #700 from google/jwilson_0907_serializenulls_accessor
Expose serializeNulls with an accessor.
2015-09-07 22:44:05 -04:00
jwilson
ff2c8f8e8b Expose serializeNulls with an accessor.
Useful for frameworks that build on Gson.
2015-09-07 22:31:43 -04:00
inder123
39b5d487d2 Merge pull request #698 from google/maven-update
updated maven plugin versions to latest
2015-09-07 12:10:39 -07:00
Inderjeet Singh
1bf62f0214 updated maven plugin versions to latest 2015-09-07 12:02:45 -07:00
Jesse Wilson
aa107894dd Merge pull request #694 from Dorvaryn/delegate_type_adapter_is_order_dependent
getDelegateAdapter is order dependant and skips more than one typeAdapterFactory.
2015-09-03 22:17:23 -04:00
Dorvaryn
618343fd1b Clarify the fact that the behaviour of getDelegateAdapter depends on registration order. 2015-09-03 18:15:24 +01:00
Jesse Wilson
b9738875c0 Merge pull request #693 from google/double_array_tests
Added tests for deserialization of double array
2015-09-01 22:57:01 -04:00
Inderjeet Singh
fbb8696e83 Added tests for deserialization of double array 2015-09-01 17:49:34 -07:00
Jesse Wilson
87717662f7 Merge pull request #689 from vbauer/util-classes
Add unit tests for constructors from util classes
2015-08-14 20:42:31 -04:00
Vladislav Bauer
eb79ec73f0 Add unit tests for constructors from util classes 2015-08-15 05:29:46 +06:00
Jesse Wilson
6cd5ee63ea Merge pull request #688 from MichaelEvans/target_acquired
Add METHOD target for use with AutoValue's abstract property methods
2015-08-14 18:58:18 -04:00
Michael Evans
64d74db8ae Add METHOD target for use with AutoValue's abstract property methods 2015-08-14 14:08:56 -04:00
inder123
b4978a8062 Merge pull request #685 from google/threadsafe-javadoc
Updated Gson Javadoc to indicate thread-safety.
2015-08-10 19:35:10 +05:30
Inderjeet Singh
0c4ae01836 Updated Gson Javadoc to indicate thread-safety. 2015-08-10 19:34:07 +05:30
inder123
09839be004 Merge pull request #684 from google/revert-664-issue-613
Revert "Add a JSR-305 @ThreadSafe annotation to the Gson class"
2015-08-10 19:32:00 +05:30
inder123
2ee680a645 Revert "Add a JSR-305 @ThreadSafe annotation to the Gson class" 2015-08-10 19:31:18 +05:30
inder123
0a93efada5 Merge pull request #652 from schlan/fix_turkish_locale_issues
Fix issues if runing in an environment with a Turkish locale
2015-08-08 09:10:48 -07:00
Inderjeet Singh
f73f8e063b ignoring target directories everywhere. 2015-08-08 09:06:54 -07:00
Jesse Wilson
f0bf15eb7a Merge pull request #681 from lcoote/nullSafeRuntimeType
fix #680 - make RuntimeTypeAdapterFactory null-safe
2015-08-06 17:49:18 -04:00
Lachlan Coote
1867457030 fix #680 - make RuntimeTypeAdapterFactory null-safe 2015-08-05 16:27:18 -07:00
Jesse Wilson
77e31ed999 Merge pull request #674 from vogellacompany/master
Readme points to the new homepage at Github
2015-07-29 16:24:31 -07:00
Lars Vogel
37d00c268d Readme points to the new homepage at Github 2015-07-29 18:45:24 +02:00
inder123
24eec9428b Merge pull request #671 from ownaginatious/master
Support for adding primitives directly to JsonArray instances
2015-07-26 14:17:10 -07:00
inder123
d805f22166 Merge pull request #669 from adamtanner/inet-address-test-failure
Replace localhost lookup with static IP to fix test.
2015-07-26 14:13:32 -07:00
Dillon Dixon
5cf82a573f Added test for nulls 2015-07-23 23:02:46 -07:00
Dillon Dixon
a67ca052a3 Added test for mixed primitives 2015-07-23 23:00:18 -07:00
Dillon Dixon
374e5b0aa5 Added test ovr new DOM functionality 2015-07-23 22:57:32 -07:00
Dillon Dixon
d8c12a727f Fixed accidental duplication of null elements 2015-07-23 21:18:01 -07:00
Dillon Dixon
6960ebc776 Updated JsonArray to support adding primitives directly via an overloaded "add(...)" method rather than having to always do "add(new JsonPrimitive(...))" 2015-07-23 20:44:04 -07:00
inder123
31ea72a29f Merge pull request #670 from adamtanner/release
Change references to Google Code to Github in pom.xml.
2015-07-20 23:01:33 -07:00
Adam Tanner
2b67815808 Change references to Google Code to Github. 2015-07-20 14:31:39 -07:00
Adam Tanner
457541611c Replace localhost lookup with static IP to fix test.
Calling InetAddress.getLocalHost() will cause a lookup to occur that may
fail with a java.net.UnknownHostException if the system the test is
running on is not configured correctly.

This is often fixed by echoing "127.0.0.1 $HOSTNAME" to /etc/hosts, but
in this case it seems easier to pick a static IP string to avoid the
lookup entirely and prevent false negatives in the test.
2015-07-20 14:03:52 -07:00
Jesse Wilson
8e570ee3a2 Merge pull request #667 from adamtanner/json-writer-opaque-value
JsonWriter#value supports opaque JSON values.
2015-07-20 11:21:23 -07:00
Adam Tanner
f7abd59a3b JsonWriter#jsonValue writes raw JSON values.
Add a jsonValue(String value) method that takes a raw JSON string that
can be used to write the string directly to the underlying writer
without modification.

The intended use case for this is when building JSON that contains a
pre-serialized JSON string as a value in an object or array.
2015-07-20 10:56:56 -07:00
Jesse Wilson
bb34247cc4 Merge pull request #664 from ferstl/issue-613
Add a JSR-305 @ThreadSafe annotation to the Gson class
2015-07-13 13:47:37 -04:00
Stefan Ferstl
82edd57205 Add a JSR-305 @ThreadSafe annotation to the Gson class
- Add an optional dependency to com.google.code.findbugs:jsr305.
  The optional scope is used in order to avoid introducing a new
  transitive dependency to the jsr305 library. This is fine because the 
  @ThreadSafe annotation has only a documentary purpose and it is not
  retained at runtime.
- Annotate the Gson class as @ThreadSafe

Fixes Issue #613
2015-07-13 18:34:38 +02:00
inder123
fcfd397d6f Merge pull request #659 from google/jw/gitignore
Add gitignore for Maven, Eclipse, IDEA, and OSX files.
2015-06-18 07:55:15 -07:00
Jake Wharton
e914de082b Add gitignore for Maven, Eclipse, IDEA, and OSX files. 2015-06-18 10:32:15 -04:00