facebookarchive / swift

An annotation-based Java library for creating Thrift serializable types and services.
Apache License 2.0
900 stars 297 forks source link

Tweaks to ThriftCodecModule #313

Closed jesboat closed 8 years ago

jesboat commented 8 years ago

Summary:

Remove the binder.disableCircularProxies() and binder.requireExplicitBindings() calls from ThriftCodecModule. They're not required by ThriftCodecModule, but due to the way Guice works they are propagated to sibling modules. This forces applications which want to use ThriftCodecModule to either forego implicit bindings or embed their ThriftCodecModule instance inside a child injector or private module, which somewhat defeats the point of having a shared ThriftCodecModule.

Test plan: code review

Reviewers: @martint, @dain, @andrewcox

Cc: @cairnsjr

electrum commented 8 years ago

Looks good