From ea6810dfba77049664a6d3096569ea68583c5a68 Mon Sep 17 00:00:00 2001 From: tsantalis Date: Thu, 16 Jan 2025 07:48:41 -0500 Subject: [PATCH] Avoid reporting Assert Throws for nested lambda mappings monad/src/test/java/com/iluwatar/monad/MonadTest.java https://github.com/iluwatar/java-design-patterns/commit/6694d742a370e0f181530734481284de8d5dd8ef --- .../gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java b/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java index f5f76b223..0b0b946fc 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java @@ -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()); } }