Patches: corrected behaviour in case there are few files with the same name and checksums.

This commit is contained in:
Vladimir.Orlov
2017-03-02 09:25:16 +03:00
parent 3dfd54fa62
commit 466d658909
@@ -52,7 +52,7 @@ public class DiffCalculator {
String source = byContent.get(create.getValue());
boolean move = true;
if (source == null) {
if (source == null || create.getKey().startsWith("jre")) {
List<String> sameName = byName.get(new File(create.getKey()).getName());
if (sameName != null) {
source = findBestCandidateForMove(sameName, create.getKey());