[cdi-dev] unify areQualifiersEquivalent and areInterceptorBindingEquivalent?
Pete Muir
pmuir at redhat.com
Mon Jan 7 11:32:04 EST 2013
Well, I'm not sure the semantics of that name are correct, as qualiifer/interceptor binding equality is different from annotation equality. We could call it areBindingsEquivalent...
On 2 Jan 2013, at 16:37, Mark Struberg wrote:
> areQualifiersEquivalent
> and
>
> areInterceptorBindingsEquivalent
>
> are pretty much the same internally, right?
>
> So what about to generalize this into a
>
>
> areAnnotationsEquivalent(Annotation ann1, Annotation ann2)
>
> which returns only true if the classes of ann1 == ann2 and all except @Nonbinding members are equal.
>
> same goes for the hashCode methods of those 2.
>
>
> wdyt?
>
> LieGrue,
> strub
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
More information about the cdi-dev
mailing list