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()); } }