singh-akhilesh commented on a change in pull request #2301:
URL: https://github.com/apache/netbeans/pull/2301#discussion_r469735729
##########
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:
Treshims is not currently supported in java.refactoring module and to
support this TreeShimCopiler class need to be modified. So instead of adding
dependency on that class for the TreeShims.ROCORD had created the constant
locally.
----------------------------------------------------------------
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