aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cpd-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-12-07 03:37:03 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-12-07 13:42:19 +0400
commitaef8d4f343da895d6e2538f28546f502330cf3b4 (patch)
tree3531c5c45d012ad9f00c5561b1dde07de94a0a34 /plugins/sonar-cpd-plugin
parentf0d96c1053f6345e82351522c5bd8ce5633008bd (diff)
downloadsonarqube-aef8d4f343da895d6e2538f28546f502330cf3b4.tar.gz
sonarqube-aef8d4f343da895d6e2538f28546f502330cf3b4.zip
SONAR-3060 Use new CPD algorithm
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r--plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
index a2dfd55cd7a..14056dd47c3 100644
--- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
+++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
@@ -33,7 +33,7 @@ import org.sonar.api.utils.SonarException;
import org.sonar.batch.index.ResourcePersister;
import org.sonar.duplications.block.Block;
import org.sonar.duplications.block.BlockChunker;
-import org.sonar.duplications.detector.original.OriginalCloneDetectionAlgorithm;
+import org.sonar.duplications.detector.suffixtree.SuffixTreeCloneDetectionAlgorithm;
import org.sonar.duplications.index.CloneGroup;
import org.sonar.duplications.index.CloneIndex;
import org.sonar.duplications.index.ClonePart;
@@ -185,7 +185,7 @@ public class SonarEngine extends CpdEngine {
}
public List<CloneGroup> call() {
- return OriginalCloneDetectionAlgorithm.detect(index, fileBlocks);
+ return SuffixTreeCloneDetectionAlgorithm.detect(index, fileBlocks);
}
}