lahodaj commented on a change in pull request #1877: [NETBEANS-3604]Supports
for Records (JEP 359) in JDK-14"
URL: https://github.com/apache/netbeans/pull/1877#discussion_r367893063
##########
File path:
java/java.editor/src/org/netbeans/modules/editor/java/GoToSupport.java
##########
@@ -986,6 +1020,14 @@ public Void visitTypeParameter(TypeParameterElement e,
Boolean highlightName) {
return null;
}
+ @Override
+ public Void visitUnknown(Element e, Boolean p) {
+ if (TreeShims.isRecordComponent(e)) {
+ return visitVariable((VariableElement) e, p);
+ }
+ return super.visitUnknown(e, p); //To change body of generated
methods, choose Tools | Templates.
Review comment:
Ideally comments like "//To change..." should be deleted.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
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