mbien commented on code in PR #8423:
URL: https://github.com/apache/netbeans/pull/8423#discussion_r2043951961


##########
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:
   Your suggestion works and is as fast - will update it soon after testing it 
a bit longer



-- 
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

Reply via email to