Class NaiveMovedArtifactDetection<L extends Label>

java.lang.Object
org.variantsync.diffdetective.variation.diff.transform.NaiveMovedArtifactDetection<L>
All Implemented Interfaces:
VariationDiffTransformer<L>

public class NaiveMovedArtifactDetection<L extends Label> extends Object implements VariationDiffTransformer<L>
Finds artifact nodes whose label is exactly equal. If one of those nodes was added and the other one was removed, NaiveMovedArtifactDetection merges them and interprets this edit as a move instead of separate insertion and deletion. A possible future extension would be to account for multiline artifact nodes to not only check for exact equality of text but for each line in the nodes individually.
Author:
Paul Bittner