rmannibucau commented on code in PR #128: URL: https://github.com/apache/openwebbeans/pull/128#discussion_r2081577771
########## webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java: ########## @@ -613,5 +615,55 @@ else if (methodIndex < 32267) mv.visitEnd(); } + public static class AnnotationTypeKey<T> + { + private final AnnotatedType<T> annotatedType; + + + public AnnotationTypeKey(final AnnotatedType<T> annotatedType) + { + Asserts.assertNotNull(annotatedType, "annotatedType"); + this.annotatedType = annotatedType; + } + + @Override + public final boolean equals(final Object o) + { + if (!(o instanceof AnnotationTypeKey)) + { + return false; + } + + final AnnotatedType<?> at = ((AnnotationTypeKey<?>) o).annotatedType; + if (annotatedType == at) + { + return true; + } + + if (annotatedType.equals(at)) + { + return true; + } + + if (annotatedType.getJavaClass() == at.getJavaClass()) Review Comment: think it is not sufficient, misses annotations and other parts of the model no? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@openwebbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org