singh-akhilesh commented on a change in pull request #2164:
URL: https://github.com/apache/netbeans/pull/2164#discussion_r440266664
##########
File path:
java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java
##########
@@ -199,6 +199,10 @@ public static Tree getBindingPatternType(Tree node) {
public static boolean isRecord(Element el) {
return el != null && "RECORD".equals(el.getKind().name());
}
+
+ public static<N extends Tree> boolean isRecord(final N node) {
+ return node != null && "RECORD".equals(node.getKind().name());
Review comment:
addressed code review comments
----------------------------------------------------------------
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]
---------------------------------------------------------------------
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