Skip to content

Commit

Permalink
Avoid reporting Assert Throws for nested lambda mappings
Browse files Browse the repository at this point in the history
monad/src/test/java/com/iluwatar/monad/MonadTest.java
iluwatar/java-design-patterns@6694d74
  • Loading branch information
tsantalis committed Jan 16, 2025
1 parent 0d3861b commit ea6810d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8982,7 +8982,7 @@ private void processAnonymousClassDeclarationsInIdenticalStatements(LeafMapping
this.nonMappedInnerNodesT2.addAll(mapper.nonMappedInnerNodesT2);
this.nonMappedLeavesT1.addAll(mapper.nonMappedLeavesT1);
this.nonMappedLeavesT2.addAll(mapper.nonMappedLeavesT2);
if(this.container1 != null && this.container2 != null) {
if(this.container1 != null && this.container2 != null && !lambda1.getString().equals(lambda2.getString())) {
this.refactorings.addAll(mapper.getRefactorings());
}
}
Expand Down

0 comments on commit ea6810d

Please sign in to comment.