Skip to content

Commit

Permalink
More updated files
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Nov 27, 2024
1 parent 6b08fa5 commit 61c88b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/codetracker/BlockTrackerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public History<Block> track() throws Exception {
continue;
}
String rightMethodClassName = rightMethod.getUmlOperation().getClassName();
String rightMethodSourceFolder = rightMethod.getUmlOperation().getLocationInfo().getSourceFolder();
Block rightBlock = rightMethod.findBlock(currentBlock::equalIdentifierIgnoringVersion);
if (rightBlock == null) {
continue;
Expand Down Expand Up @@ -294,7 +295,7 @@ else if (leftOperation instanceof UMLInitializer && rightOperation instanceof UM
}


UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodClassName);
UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodSourceFolder, rightMethodClassName);
if (umlClassDiff != null) {
found = changeHistory.checkClassDiffForBlockChange(currentVersion, parentVersion, equalMethod, equalBlock, umlClassDiff);

Expand Down Expand Up @@ -374,6 +375,7 @@ public History.HistoryInfo<Block> blame() throws Exception {
continue;
}
String rightMethodClassName = rightMethod.getUmlOperation().getClassName();
String rightMethodSourceFolder = rightMethod.getUmlOperation().getLocationInfo().getSourceFolder();
Block rightBlock = rightMethod.findBlock(currentBlock::equalIdentifierIgnoringVersion);
if (rightBlock == null) {
continue;
Expand Down Expand Up @@ -588,7 +590,7 @@ else if (leftOperation instanceof UMLInitializer && rightOperation instanceof UM
}


UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodClassName);
UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodSourceFolder, rightMethodClassName);
if (umlClassDiff != null) {
found = changeHistory.checkClassDiffForBlockChange(currentVersion, parentVersion, equalMethod, equalBlock, umlClassDiff);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public History<Block> track() throws Exception {
continue;
}
String rightMethodClassName = rightMethod.getUmlOperation().getClassName();
String rightMethodSourceFolder = rightMethod.getUmlOperation().getLocationInfo().getSourceFolder();
Block rightBlock = rightMethod.findBlock(currentBlock::equalIdentifierIgnoringVersion);
if (rightBlock == null) {
continue;
Expand Down Expand Up @@ -323,7 +324,7 @@ else if (leftOperation instanceof UMLInitializer && rightOperation instanceof UM
}


UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodClassName);
UMLAbstractClassDiff umlClassDiff = getUMLClassDiff(umlModelDiffAll, rightMethodSourceFolder, rightMethodClassName);
if (umlClassDiff != null) {
found = changeHistory.checkClassDiffForBlockChange(currentVersion, parentVersion, equalMethod, equalBlock, umlClassDiff);

Expand Down

0 comments on commit 61c88b3

Please sign in to comment.