singh-akhilesh commented on a change in pull request #2301:
URL: https://github.com/apache/netbeans/pull/2301#discussion_r469782582



##########
File path: 
java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/UIUtilities.java
##########
@@ -57,14 +57,22 @@
 
     // XXX: Remove "test_" when #211651 is fixed
     private static final String TEST_JAVA_MIME_TYPE = "test_text/x-java"; // 
NOI18N
+    private static final String RECORD = "RECORD";
     /**
      * Element.Kind values allowed to be used when calling ElementHandle.create
      *
      * @see javax.lang.model.element.ElementKind
      * @see org.netbeans.api.java.source.ElementHandle
      */
     public static EnumSet allowedElementKinds = 
EnumSet.of(ElementKind.PACKAGE, ElementKind.CLASS, ElementKind.INTERFACE, 
ElementKind.ENUM, ElementKind.ANNOTATION_TYPE, ElementKind.METHOD, 
ElementKind.CONSTRUCTOR, ElementKind.INSTANCE_INIT, ElementKind.STATIC_INIT, 
ElementKind.FIELD, ElementKind.ENUM_CONSTANT, ElementKind.TYPE_PARAMETER);
-
+    static {
+        ElementKind recKind = null;
+        try {
+            recKind = ElementKind.valueOf(RECORD);

Review comment:
       There is some issue in this PR. Created another PR 
https://github.com/apache/netbeans/pull/2310  and addressed all the review 
comments. Please verify.




----------------------------------------------------------------
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

Reply via email to