org.sonar.duplications.detector.original
Class OriginalCloneDetectionAlgorithm
java.lang.Object
org.sonar.duplications.detector.original.OriginalCloneDetectionAlgorithm
public final class OriginalCloneDetectionAlgorithm
- extends Object
Implementation of algorithm described in paper
Index-Based Code Clone Detection: Incremental, Distributed, Scalable
by Benjamin Hummel, Elmar Juergens, Michael Conradt and Lars Heinemann.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
detect
public static List<CloneGroup> detect(CloneIndex cloneIndex,
Collection<Block> fileBlocks)
- Performs detection and returns list of clone groups between file (which represented as a collection of blocks) and index.
Note that this method ignores blocks for this file, that will be retrieved from index.
Copyright © 2009-2012 SonarSource. All Rights Reserved.