Inderjeet Singh
ea48a1debf
Fixed issue 175 by adding default type adapters for StringBuilder and StringBuffer.
2011-01-31 23:14:02 +00:00
Inderjeet Singh
50a1191f90
Updated JDK version to match caliper's
2011-01-31 18:35:11 +00:00
Inderjeet Singh
7b3cb27ee5
Added maven dependency to caliper in pom.xml
2011-01-27 01:18:52 +00:00
Inderjeet Singh
1ad0489b84
Initial version of Gson benchmark using Caliper
2011-01-25 19:20:20 +00:00
Inderjeet Singh
a09c3ab1c5
Added tests to validate issue 272. The tests currently pass so it is not a valid bug.
2011-01-24 22:40:42 +00:00
Joel Leitch
56aa828350
Minor clean-up in Gson class.
2011-01-22 22:43:43 +00:00
Joel Leitch
fb7bd7b1b7
Deprecate the old FieldNamingStrategy interface and open up the FieldNamingStrategy2 instead to take its place.
2011-01-22 22:27:30 +00:00
Joel Leitch
b883f8f4aa
Add new "Mode" enum and carry mode through Gson so exclusion strategies know whether it is currently serializing or deserializing.
...
Deprecate old ExclusionStrategy code since this new approach is more powerful.
2011-01-22 22:15:06 +00:00
Inderjeet Singh
2b9f81e8b5
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.
2011-01-19 23:28:28 +00:00
Jesse Wilson
fd0f526fb0
Basic functional test for type hierarchy adapter.
2011-01-19 23:25:27 +00:00
Jesse Wilson
a526da7cdd
Tests that demonstrate that type variables work.
...
Fixes issue 168.
2011-01-19 22:24:10 +00:00
Inderjeet Singh
edc71130c4
removed unneeded suppression of warnings.
2011-01-19 07:34:44 +00:00
Inderjeet Singh
b3685cff1e
added version numbers to various plugins.
...
replaced now deprecated ${version} with ${project.version}
2011-01-18 23:03:58 +00:00
Inderjeet Singh
9a792a9952
added tagbase to maven release plugin in POM
2011-01-18 22:52:45 +00:00
Inderjeet Singh
ce3520f5b5
disabling an assert that was causing failed test.
...
Per Jesse, this assertion is too difficult to support reliably.
2011-01-13 07:35:11 +00:00
Jesse Wilson
37dc0f8d3e
Type adapter for maps. Supports both complex and non-complex keys.
2011-01-12 00:17:21 +00:00
Joel Leitch
bd3e680f94
Fixing rollback.
2011-01-11 22:24:14 +00:00
Joel Leitch
fa7f8cc2eb
Rolling back test deletion.
2011-01-11 22:21:41 +00:00
Joel Leitch
439d931c5a
Removing unused methods on Cache and synchronizing it since FieldAttributes contains a static instance of this type.
2011-01-10 23:20:37 +00:00
Joel Leitch
1e2fbd81f5
Adding default type adapter for InetAddress.
2011-01-10 23:03:48 +00:00
Joel Leitch
3926afbd30
Removing unused files with the new Types class.
2011-01-10 22:47:42 +00:00
Inderjeet Singh
0e5f6704cd
Added sonatype oss as parent for the pom. Diabled repository management with-in POM per instructions at: https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
2011-01-10 22:47:36 +00:00
Inderjeet Singh
25f0014305
Added SNAPSHOT tag.
...
Added Google as organization and Jesse Wilson as developer.
2011-01-10 22:36:24 +00:00
Inderjeet Singh
8380d28e6f
removed compiler warnings
2010-12-06 19:47:41 +00:00
Jesse Wilson
883ce465d5
Second half of adopting Guice's types code.
...
This removes a bunch of unnecessary public APIs and looks more like the GSON code that existed before this whole exercise. We no longer use TypeToken.isAssignable. I wrote a test that demonstrates at least one problem with that method, so I've deprecated it. We should be able to remove it release-after-next; nobody should be using this method anyway.
There are still some things that are public that shouldn't be. In particular there's some APIs in Types that are needed by TypeToken, which is unfortunately in a different package. Traditionally the fix is to create an 'internal' package and make the shared code public in the internal package. I'm not sure what we want to do for GSON; we could also use reflection (yuck) or duplicate the code (yuck).
2010-12-03 18:12:26 +00:00
Jesse Wilson
d1ddab2e6f
Swap out GSON's type mechanics with the Type resolution code from Guice.
...
The most significant impact of this change is that fields whose types are type parameters should now GSONify just fine. For example, consider the class below.
abstract class Foo<A, B> {
A a;
B b;
List<A> list;
Map<A, List<B>> map;
}
class RealFoo extends Foo<String, Integer> {...}
This is a reasonable checkpoint but some work still needs to be done for this. In particular, the level of visibility of methods in TypeToken and Type should be reconsidered; we're exposing more than we need to!
2010-12-03 08:07:13 +00:00
Inderjeet Singh
faa5464e84
updated current version to 1.7. Added stream package to OSGI. Added maven-changes-plugin.
2010-11-25 20:00:38 +00:00
Inderjeet Singh
5be830835d
Added report for subversion changelogs
2010-11-25 15:15:41 +00:00
Inderjeet Singh
9f5aa1772b
added reports on TODO tags
2010-11-25 15:07:44 +00:00
Inderjeet Singh
6818edecf9
enabled GsonBuilder.registerTypeHierarchyAdapter since head is now for Gson 1.7
2010-11-25 00:16:06 +00:00
Inderjeet Singh
e061d0e563
Added findbugs reporting in maven pom.xml
2010-11-25 00:14:49 +00:00
Jesse Wilson
90e7de92df
New Javadocs for 1.6
2010-11-24 23:41:30 +00:00
Jesse Wilson
1672d2cfe0
Removing GSON 1.5 javadocs
2010-11-24 23:40:29 +00:00
Jesse Wilson
1c5f5132d8
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.
2010-11-24 23:22:13 +00:00
Inderjeet Singh
d87eed510b
Fixed compilation problem since we dropped registerTypeHierarchyAdapter method
2010-11-24 23:14:30 +00:00
Inderjeet Singh
db3f19e881
dropping GsonBuilder.registerTypeHierarchyAdapter() from 1.6 release.
2010-11-24 23:13:29 +00:00
Inderjeet Singh
98ff894863
removed unnecessary else clause.
2010-11-22 23:14:51 +00:00
Joel Leitch
56344cf067
Remove duplicate test.
2010-11-16 22:18:28 +00:00
Joel Leitch
0a3f5fa801
Required strings to be quoted even in lenient mode.
...
As far as Inderjeet and I can tell, this is consistent with Gson 1.5.
2010-11-16 22:14:40 +00:00
Inderjeet Singh
279649986e
Added a test to ensure that Gson handles repeated invocation of itself correctly.
...
Revised proto maven configuration to use Gson 1.6
2010-11-15 22:56:01 +00:00
Inderjeet Singh
371befafa3
deleted wsexample and wsexample/server since its contents are now moved to greaze.
2010-11-14 09:29:22 +00:00
Inderjeet Singh
c713ce1ab1
removed wsexample/client since its contents are now moved into greaze-example-client
2010-11-14 09:19:47 +00:00
Inderjeet Singh
5082dd4662
moved contents of wexample/definition to greaze-example-definition
2010-11-14 09:10:44 +00:00
Inderjeet Singh
debd3309b3
delete wsf since its contents are now moved greaze-server
2010-11-14 08:35:23 +00:00
Inderjeet Singh
d69290f3e9
moved contents of wsf into greaze-server
2010-11-14 08:32:56 +00:00
Inderjeet Singh
4966bf0a53
deleted empty wsclient
2010-11-14 07:46:47 +00:00
Inderjeet Singh
0fa317045b
moved contents of wsclient into greaze-client
2010-11-14 07:44:26 +00:00
Inderjeet Singh
520259fefa
removed eclipse warnings.
2010-11-12 19:21:16 +00:00
Inderjeet Singh
9bf785c9fb
deleted wsdef since its contents are now moved into greaze-definition
2010-11-12 17:16:55 +00:00
Inderjeet Singh
822d1bc75e
moved contents of wsdef to greaze-definition.
2010-11-12 17:12:46 +00:00