lahodaj commented on code in PR #8591:
URL: https://github.com/apache/netbeans/pull/8591#discussion_r2256901042
##########
java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java:
##########
@@ -2131,7 +2131,11 @@ protected int diffCase(JCCase oldT, JCCase newT, int[]
bounds) {
do { } while (tokenSequence.moveNext() && JavaTokenId.COLON !=
tokenSequence.token().id() && JavaTokenId.ARROW != tokenSequence.token().id());
boolean reindentStatements = false;
if (Objects.equals(oldT.getCaseKind(), newT.getCaseKind())) {
+ localPointer= tokenSequence.offset();
Review Comment:
I'm sorry I wasn't very precise - I meant the above change is the only
change needed in `CasualDiff`. The other changes (adjusting the `localPointer`)
are not (I believe) needed.
--
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