From 5713e8ff5021aa88b74e462236fefc7bb37d00ae Mon Sep 17 00:00:00 2001 From: tsantalis Date: Fri, 2 Aug 2024 05:02:40 -0400 Subject: [PATCH] Improve mappings for commit https://github.com/eclipse-jgit/jgit/commit/1b783d037 --- .../java/xmi/decomposition/UMLOperationBodyMapper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ad1daacbf..0f9ff1b7c 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/UMLOperationBodyMapper.java @@ -738,16 +738,16 @@ else if(streamAPIStatements1.size() > 0 && streamAPIStatements2.size() == 0) { boolean unmatchedParent = false; while(parent1 != null && parent2 != null) { if(parent1.getParent() == null || parent2.getParent() == null) { - if(parent1 instanceof TryStatementObject && parent1.getParent().getParent() == null) { + if(parent1 instanceof TryStatementObject) { break; } - if(parent2 instanceof TryStatementObject && parent2.getParent().getParent() == null) { + if(parent2 instanceof TryStatementObject) { break; } - if(parent1.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK) && parent1.getParent().getParent() == null) { + if(parent1.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK)) { break; } - if(parent2.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK) && parent2.getParent().getParent() == null) { + if(parent2.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK)) { break; } if(child1.getAnonymousClassDeclarations().size() > 0 && child2.getAnonymousClassDeclarations().size() > 0) {