diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-18 08:10:39 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-18 08:10:39 +0400 |
commit | 64f77ae8735cc1584e9b5c393d97e20b2b0f2a5d (patch) | |
tree | 6cd586ff90bccde9e9db9803874e09bebcec0740 /sonar-duplications/src/main/java/org/sonar | |
parent | 7dc3bc3d572799e245710a9be7cfaed07f76addf (diff) | |
download | sonarqube-64f77ae8735cc1584e9b5c393d97e20b2b0f2a5d.tar.gz sonarqube-64f77ae8735cc1584e9b5c393d97e20b2b0f2a5d.zip |
Mark org.sonar.duplications.cpd.CPD as deprecated
Diffstat (limited to 'sonar-duplications/src/main/java/org/sonar')
-rw-r--r-- | sonar-duplications/src/main/java/org/sonar/duplications/cpd/CPD.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/cpd/CPD.java b/sonar-duplications/src/main/java/org/sonar/duplications/cpd/CPD.java index 254c8dff275..61ec8107555 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/cpd/CPD.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/cpd/CPD.java @@ -34,6 +34,11 @@ import java.util.Iterator; import java.util.List; import java.util.Map; +/** + * @deprecated since 2.14, will be removed soon, and in any case should not be used for unit tests in Sonar plugins: + * instead of using this class for tests, you should test only your implementation of {@link Tokenizer} + */ +@Deprecated public class CPD { private Map<String, SourceCode> source = new HashMap<String, SourceCode>(); @@ -97,7 +102,6 @@ public class CPD { throw new FileNotFoundException("Couldn't find directory " + dir); } FileFinder finder = new FileFinder(); - // TODO - could use SourceFileSelector here add(finder.findFilesFrom(dir, language.getFileFilter(), recurse)); } |