[
https://issues.apache.org/jira/browse/ONAMI-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Mazursky updated ONAMI-29:
----------------------------------
Attachment: ONAMI-29-2.patch
Fixed patch.
No, Matcher<? super TypeLiteral<?>> is less restrictive because you can pass in
both Matcher<TypeLiteral<?>> and Matcher<Object> into method with such
signature whereas in case of Matcher<Object> you only can pass Matcher<Object>.
> Fix generics bounds for Matcher
> -------------------------------
>
> Key: ONAMI-29
> URL: https://issues.apache.org/jira/browse/ONAMI-29
> Project: Apache Onami
> Issue Type: Improvement
> Components: lifecycle
> Affects Versions: lifecycle-0.2
> Reporter: Mikhail Mazursky
> Labels: generics
> Attachments: ONAMI-29-2.patch, ONAMI-29.patch
>
>
> Method signature of Guice bindListener(Matcher<? super TypeLiteral<?>>,
> TypeListener)
> So why restrict API to Matcher<Object>?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira