y.getValue());
// Important! Otherwhise nodes that match poorly will make it into final matching set,
// if no better matches are found!
if (similarity >= LEAF_COMMENT_STRING_SIMILARITY_THRESHOLD) {
matchedLeafs.add(new LeafPair(x, y, similarity));
}
} else { // ...other statements.
similarity =
fLeafGenericStringSimilarityCalculator.calculateSimilarity(
x.getValue(),
y.getValue());
// Important! Otherwise nodes that match poorly will make it into final matching set,
// if no better matches are found!
if (similarity >= fLeafGenericStringSimilarityThreshold) {
matchedLeafs.add(new LeafPair(x, y, similarity));
}
}
}
}
}