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 cb49a0e80..b897b197a 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java @@ -1450,7 +1450,11 @@ else if(streamAPIStatements1.size() > 0 && streamAPIStatements2.size() == 0) { } } boolean isomorphic = isomorphicCompositeStructure(innerNodes1, innerNodes2); + int anonymousMappers = this.anonymousClassDiffs.size(); processLeaves(leaves1, leaves2, new LinkedHashMap(), isomorphic); + if(this.anonymousClassDiffs.size() > anonymousMappers && parentMapper != null) { + parentMapper.anonymousClassDiffs.addAll(this.anonymousClassDiffs); + } processInnerNodes(innerNodes1, innerNodes2, leaves1, leaves2, new LinkedHashMap(), containsCallToExtractedMethod(leaves2));