Skip to content

Commit

Permalink
Enable matching of method pair in commit
Browse files Browse the repository at this point in the history
hibernate/hibernate-orm@8577a68

Add Parameter	isId : boolean in method private bindComponent(inferredData PropertyData, propertyHolder PropertyHolder, propertyAccessor AccessType, entityBinder EntityBinder, isIdentifierMapper boolean, mappings ExtendedMappings, isComponentEmbedded boolean, isId boolean, inheritanceStatePerClass Map<XClass,InheritanceState>) : PropertyBinder from class org.hibernate.cfg.AnnotationBinder
  • Loading branch information
tsantalis committed Sep 25, 2024
1 parent b0a8a57 commit ea76b2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3795,6 +3795,10 @@ public Set<MethodInvocationReplacement> getMethodInvocationRenameReplacements()
return replacements;
}

public boolean involvesConstructors() {
return container1.isConstructor() && container2.isConstructor();
}

public boolean involvesTestMethods() {
return container1.hasTestAnnotation() && container2.hasTestAnnotation();
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,7 @@ private boolean mappedElementsMoreThanNonMappedT1AndT2(int mappings, UMLOperatio
(nonMappedElementsT1 == 0 && mappings > Math.floor(nonMappedElementsT2/2.0) && !operationBodyMapper.involvesTestMethods()) ||
(nonMappedElementsT2 == 0 && mappings > Math.floor(nonMappedElementsT1/2.0) && !operationBodyMapper.involvesTestMethods() && !(this instanceof UMLClassMoveDiff)) ||
(nonMappedElementsT1 == 0 && exactMappings >= Math.floor(nonMappedElementsT2/2.0) && operationBodyMapper.getContainer1().isConstructor() == operationBodyMapper.getContainer2().isConstructor()) ||
(nonMappedElementsT1 <= 1 && exactMappings > 1 && exactMappings >= Math.floor(nonMappedElementsT2/2.0)) ||
(nonMappedElementsT2 == 0 && exactMappings > 0 && exactMappings >= Math.floor(nonMappedElementsT1/2.0) && operationBodyMapper.getNonMappedInnerNodesT1().size() == 0 && operationBodyMapper.getContainer1().isConstructor() == operationBodyMapper.getContainer2().isConstructor()) ||
(nonMappedElementsT2 == 0 && exactMappings > 0 && operationBodyMapper.getContainer1().getParameterNameList().size() > 0 &&
operationBodyMapper.getContainer1().getParameterNameList().equals(operationBodyMapper.getContainer2().getParameterNameList()) &&
Expand Down

0 comments on commit ea76b2c

Please sign in to comment.