Skip to content

Commit

Permalink
Fix method pair mappings in commit
Browse files Browse the repository at this point in the history
junit-team/junit5@abb5ed1
Rename Parameter	object : T to executable : T in method public makeAccessible(executable T) : T from class org.junit.platform.commons.util.ReflectionUtils
  • Loading branch information
tsantalis committed Jan 2, 2025
1 parent 0a4a83b commit c5a3017
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/gr/uom/java/xmi/UMLOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public boolean equals(Object o) {
return false;
}

public boolean equalsIgoringTypeParameters(UMLOperation operation) {
public boolean equalsIgnoringTypeParameters(UMLOperation operation) {
boolean thisEmptyBody = this.getBody() == null || this.hasEmptyBody();
boolean otherEmptyBody = operation.getBody() == null || operation.hasEmptyBody();
return this.className.equals(operation.className) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9734,6 +9734,16 @@ else if(identicalStringRepresentation2) {
return Integer.compare(thisNonMapped, otherNonMapped);
}
else {
if(getOperation1() != null && getOperation2() != null && operationBodyMapper.getOperation1() != null && operationBodyMapper.getOperation2() != null) {
boolean thisEqualSignature = this.getOperation1().equalsIgnoringTypeParameters(this.getOperation2());
boolean otherEqualSignature = operationBodyMapper.getOperation1().equalsIgnoringTypeParameters(operationBodyMapper.getOperation2());
if(thisEqualSignature && !otherEqualSignature) {
return -1;
}
else if(!thisEqualSignature && otherEqualSignature) {
return 1;
}
}
int thisEditDistance = this.editDistance();
int otherEditDistance = operationBodyMapper.editDistance();
if(thisEditDistance != otherEditDistance) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -3397,7 +3397,7 @@ else if(removedOperation.equalsIgnoringNameCase(addedOperation) && !differentPar
removedOperationsToBeRemoved.add(removedOperation);
addedOperationsToBeRemoved.add(addedOperation);
}
else if(removedOperation.equalsIgoringTypeParameters(addedOperation) && !differentParameterNames(removedOperation, addedOperation) &&
else if(removedOperation.equalsIgnoringTypeParameters(addedOperation) && !differentParameterNames(removedOperation, addedOperation) &&
removedOperations.size() == addedOperations.size()) {
UMLOperationBodyMapper operationBodyMapper = new UMLOperationBodyMapper(removedOperation, addedOperation, this);
this.addOperationBodyMapper(operationBodyMapper);
Expand Down

0 comments on commit c5a3017

Please sign in to comment.