These patches add de-duplication (by equals()/hashCode()) for all listener and interceptor types. It's potentially a breaking change, except for the first patch because ProvisionListener isn't yet released.
I tried to add the logic in the right place but I can easily move it if there's somewhere better. Tavian Barnes (3): De-duplicate ProvisionListeners. De-duplicate TypeListeners, MembersInjectors, and InjectionListeners. De-duplicate MethodInterceptors. .../inject/internal/MembersInjectorImpl.java | 5 ++- .../inject/internal/MembersInjectorStore.java | 21 ++++++---- .../internal/ProvisionListenerStackCallback.java | 9 ++-- .../com/google/inject/internal/ProxyFactory.java | 6 ++- .../com/google/inject/MethodInterceptionTest.java | 14 +++++++ .../com/google/inject/ProvisionListenerTest.java | 13 ++++++ core/test/com/google/inject/TypeListenerTest.java | 48 ++++++++++++++++++++++ 7 files changed, 101 insertions(+), 15 deletions(-) -- 1.8.4.2 -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
