lahodaj commented on code in PR #7670:
URL: https://github.com/apache/netbeans/pull/7670#discussion_r1722735263


##########
java/java.editor/src/org/netbeans/modules/java/editor/rename/InstantRenamePerformer.java:
##########
@@ -450,14 +450,13 @@ private static boolean allowInstantRename(CompilationInfo 
info, Element e, Eleme
             if(isProperty) {
                 return false;
             }
-            boolean isRecordComponent = e.getEnclosingElement().getKind() == 
ElementKind.RECORD;
-            if (isRecordComponent) {
-                return false;
-            }

Review Comment:
   I just placed the new check at a wrong place. Sorry for that.



-- 
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: [email protected]

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