summaryrefslogtreecommitdiffstats
path: root/sonar-duplications
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2016-03-15 16:05:13 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2016-03-16 14:04:34 +0100
commit56eec4bfb1ad5b99e6bcf6b93806dbaa87cd6a13 (patch)
tree024715d09ee80920aa2155253e2862f0710ba383 /sonar-duplications
parent4b3a0998668d9879937f47a7139ed41eb5ab05e0 (diff)
downloadsonarqube-56eec4bfb1ad5b99e6bcf6b93806dbaa87cd6a13.tar.gz
sonarqube-56eec4bfb1ad5b99e6bcf6b93806dbaa87cd6a13.zip
SONAR-7416 Deprecate CPDMapping extension point
Diffstat (limited to 'sonar-duplications')
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java2
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java2
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokenizer.java2
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java2
4 files changed, 8 insertions, 0 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
index c124d395535..c7b870d0d10 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
@@ -36,7 +36,9 @@ import java.util.List;
* <p>Not intended to be instantiated by clients.</p>
*
* @since 2.2
+ * @deprecated since 5.5
*/
+@Deprecated
public class SourceCode {
public static final String EOL = System.getProperty("line.separator", "\n");
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
index 9534a557219..5541470841b 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/TokenEntry.java
@@ -27,7 +27,9 @@ import java.util.Map;
/**
* @since 2.2
+ * @deprecated since 5.5
*/
+@Deprecated
public class TokenEntry implements Comparable<TokenEntry> {
private static final Map<String, Integer> TOKENS = new HashMap<>();
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokenizer.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokenizer.java
index 773f77aa1c0..bd228c5cfa1 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokenizer.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokenizer.java
@@ -45,7 +45,9 @@ import java.io.IOException;
* in this case the two files will be considered as duplicate.
*
* @since 2.2
+ * @deprecated since 5.5
*/
+@Deprecated
public interface Tokenizer {
void tokenize(SourceCode sourceFile, Tokens tokenEntries) throws IOException;
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java
index f5fb4732997..c5b0678b739 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/Tokens.java
@@ -30,7 +30,9 @@ import java.util.List;
* <p>Not intended to be instantiated by clients.</p>
*
* @since 2.2
+ * @deprecated since 5.5
*/
+@Deprecated
public class Tokens {
private List<TokenEntry> entries = new ArrayList<>();