You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/05/02 06:56:03 UTC
[GitHub] [netbeans] singh-akhilesh commented on a diff in pull request #4012: remove jdk18 reflection calls and updated the usages
singh-akhilesh commented on code in PR #4012:
URL: https://github.com/apache/netbeans/pull/4012#discussion_r862625461
##########
java/java.editor/test/unit/src/org/netbeans/modules/editor/java/GoToSupportTest.java:
##########
@@ -1581,7 +1581,10 @@ private static boolean hasRecords() {
}
public void testJavadocSnippetHighlightRecord() throws Exception {
- if (!TreeShims.isJDKVersionRelease18_Or_Above()) {
+ try {
+ SourceVersion.valueOf("RELEASE_18"); //NOI18N
+ } catch (IllegalArgumentException ex) {
+ //OK, no RELEASE_18, skip tests
return;
}
Review Comment:
Yes, then I believe we can remove other conditional checks also of this class are _SourceVersion.valueOf("RELEASE_10");_ and _SourceVersion.valueOf("RELEASE_14");_
--
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-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists