Skip to content

Commit

Permalink
"extract lambda to method" works newly for lambda which uses a method…
Browse files Browse the repository at this point in the history
… argument(s)
  • Loading branch information
Honza committed Oct 19, 2023
1 parent f0cd432 commit f84c061
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private boolean isMethodCode() {

@Override
public Void visitReturn(ReturnTree node, Void p) {
if (isMethodCode() && phase == PHASE_INSIDE_SELECTION) {
if ((isMethodCode() || isLambda) && phase == PHASE_INSIDE_SELECTION) {
selectionExits.add(getCurrentPath());
hasReturns = true;
}
Expand Down

0 comments on commit f84c061

Please sign in to comment.