Skip to content

Commit

Permalink
Restore broken method pair in commit
Browse files Browse the repository at this point in the history
jetty/jetty.project@19368f3
jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java
private void format(StringBuilder buffer, String msg)
private void escape(StringBuilder builder, String string)
  • Loading branch information
tsantalis committed Dec 26, 2024
1 parent fd8f16b commit 4a44ffa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -2769,10 +2769,16 @@ private boolean existingMapperWithIdenticalMapping(String stringRepresentation)

private int mismatchesConsistentMethodInvocationRename(UMLOperationBodyMapper mapper) {
int mismatchCount = 0;
List<UMLType> parameterTypeList1 = mapper.getContainer1().getParameterTypeList();
List<UMLType> parameterTypeList2 = mapper.getContainer2().getParameterTypeList();
boolean equalParameterTypes = parameterTypeList1.equals(parameterTypeList2) && parameterTypeList1.size() > 0;
for(MethodInvocationReplacement rename : consistentMethodInvocationRenames.keySet()) {
UMLOperationBodyMapper referringMapper = consistentMethodInvocationRenames.get(rename);
AbstractCall callBefore = rename.getInvokedOperationBefore();
AbstractCall callAfter = rename.getInvokedOperationAfter();
if(equalParameterTypes && callBefore.arguments().size() != callAfter.arguments().size()) {
continue;
}
if(callBefore.matchesOperation(mapper.getContainer1(), referringMapper.getContainer1(), this, modelDiff) &&
!callAfter.matchesOperation(mapper.getContainer2(), referringMapper.getContainer2(), this, modelDiff)) {
mismatchCount++;
Expand Down

0 comments on commit 4a44ffa

Please sign in to comment.