Skip to content

Commit

Permalink
Improved solution over previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Feb 18, 2024
1 parent 6941fa0 commit 6729dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gr/uom/java/xmi/diff/UMLAttributeDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ else if(initializer1 != null && initializer2 == null) {
String variableInitializer = fragment.substring(fragment.indexOf("=")+1, fragment.lastIndexOf(";\n"));
List<LeafExpression> leafExpressions2 = fragment2.findExpression(variableInitializer);
if(leafExpressions2.size() == 1) {
this.mapper = new UMLOperationBodyMapper(initializer1, leafExpressions2.get(0), operationBodyMapper.getContainer1(), operationBodyMapper.getContainer2(), classDiff, modelDiff);
this.mapper = new UMLOperationBodyMapper(initializer1, fragment2, operationBodyMapper.getContainer1(), operationBodyMapper.getContainer2(), classDiff, modelDiff);
}
}
}
Expand Down

0 comments on commit 6729dae

Please sign in to comment.