matthiasblaesing commented on issue #8419: URL: https://github.com/apache/netbeans/issues/8419#issuecomment-2802920235
I think this can be trivially improved. If I'm not mistaken, the problem is, that the TreePath construction is expensive, so we need a fastpath to determine whether the closer look is worth it. I think we should be able to get away with directly analyzing the annotation type tree. In my minder there are two cases: Fully qualified annotation name (should be a `MemberSelectTree`) and a simple name (should be `IdentifierTree`). Both can provide use with a simple name and that can act as a fastpath to determine, whether it is worth doing further checks. -- 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