Skip to content

Commit

Permalink
Further improve instanceAttributeMovedAlongWithMethod() rule
Browse files Browse the repository at this point in the history
Restores refactoring in commit
Move Attribute	private introspector : StandalonePojoBootstrapIntrospector from class org.hibernate.search.mapper.pojo.standalone.mapping.metadata.impl.StandalonePojoEntityTypeMetadataProvider.Builder to private introspector : StandalonePojoBootstrapIntrospector from class org.hibernate.search.mapper.pojo.standalone.mapping.impl.StandalonePojoMappingInitiator
in commit
hibernate/hibernate-search@6133c60
  • Loading branch information
tsantalis committed Jan 11, 2025
1 parent ba604f7 commit 555ec76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,13 @@ private boolean instanceAttributeMovedAlongWithMethod(UMLAttribute addedAttribut
}
}
}
if(targetClassDiff != null) {
for(UMLAttribute attribute : targetClassDiff.getOriginalClass().getAttributes()) {
if(attribute.getType() != null && removedAttribute.getClassName().endsWith(attribute.getType().getClassType())) {
return true;
}
}
}
for(Refactoring r : refactorings) {
if(r instanceof MoveOperationRefactoring) {
MoveOperationRefactoring move = (MoveOperationRefactoring)r;
Expand Down

0 comments on commit 555ec76

Please sign in to comment.