mbien commented on code in PR #8423: URL: https://github.com/apache/netbeans/pull/8423#discussion_r2043928745
########## java/editor.htmlui/src/org/netbeans/modules/editor/htmlui/JSEmbeddingProvider.java: ########## @@ -158,8 +162,7 @@ public Void visitMethod( final MethodTree m, final List<? super LiteralTree> p) { for (AnnotationTree a : m.getModifiers().getAnnotations()) { - final TypeElement ae = (TypeElement) trees.getElement(TreePath.getPath(cu, a.getAnnotationType())); - if (ae != null && JS_ANNOTATION.contentEquals(ae.getQualifiedName())) { + if (isJsAnnotation(a)) { Review Comment: interesting, will give it a try and report back if it reaches similar performance. 13ms for the artificial 10k inner-class file was already faster than expected. -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists