singh-akhilesh commented on code in PR #3266:
URL: https://github.com/apache/netbeans/pull/3266#discussion_r852795514
##########
java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java:
##########
@@ -364,6 +366,31 @@
// }
// return null;
// }
+ public static List<DocTree> getSnippetDocTreeAttributes(DocTree node) {
+ try {
+ Class gpt = Class.forName("com.sun.source.doctree.SnippetTree");
//NOI18N
+ return isJDKVersionRelease18_Or_Above()
+ ? (List<DocTree>)
gpt.getDeclaredMethod("getAttributes").invoke(node) //NOI18N
+ : null;
Review Comment:
I'll raise new PR soon for removing JDK 18 related 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists