Applying first match in processIdenticalFiles()
There might be multiple files with equal contents, as in commit
@@ -181,6 +181,7 @@ public class GitHistoryRefactoringMinerImpl implements GitHistoryRefactoringMine
String fileAfter = fileContentsCurrent.get(key2);
if(fileBefore.equals(fileAfter)) {
identicalFiles.put(key1, key2);
+ break;
}
}
}
@@ -195,6 +196,7 @@ public class GitHistoryRefactoringMinerImpl implements GitHistoryRefactoringMine
String fileAfter = fileContentsCurrent.get(key2);
if(StringDistance.trivialCommentChange(fileBefore, fileAfter)) {
identicalFiles.put(key1, key2);
+ break;
}
}
}
