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 /sonar-duplications/src | |
parent | f0d96c1053f6345e82351522c5bd8ce5633008bd (diff) | |
download | sonarqube-aef8d4f343da895d6e2538f28546f502330cf3b4.tar.gz sonarqube-aef8d4f343da895d6e2538f28546f502330cf3b4.zip |
SONAR-3060 Use new CPD algorithm
Diffstat (limited to 'sonar-duplications/src')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithm.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithm.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithm.java index 0bd13a88cbf..004074cfa48 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithm.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/SuffixTreeCloneDetectionAlgorithm.java @@ -77,6 +77,7 @@ public final class SuffixTreeCloneDetectionAlgorithm { } GeneralisedHashText text = new GeneralisedHashText(); + // TODO Godin: maybe we can reduce size of tree and so memory consumption by removing non-repeatable blocks List<Block> sortedFileBlocks = Lists.newArrayList(fileBlocks); Collections.sort(sortedFileBlocks, BLOCK_COMPARATOR); text.addAll(sortedFileBlocks); |