diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-12-07 03:37:03 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-12-07 13:42:19 +0400 |
commit | aef8d4f343da895d6e2538f28546f502330cf3b4 (patch) | |
tree | 3531c5c45d012ad9f00c5561b1dde07de94a0a34 /plugins/sonar-cpd-plugin | |
parent | f0d96c1053f6345e82351522c5bd8ce5633008bd (diff) | |
download | sonarqube-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.java | 4 |
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); } } |