* <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");
/**
* @since 2.2
+ * @deprecated since 5.5
*/
+@Deprecated
public class TokenEntry implements Comparable<TokenEntry> {
private static final Map<String, Integer> TOKENS = new HashMap<>();
* 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;
* <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<>();
*/
package org.sonar.api.batch;
+import java.io.File;
+import java.util.List;
import net.sourceforge.pmd.cpd.Tokenizer;
import org.sonar.api.ExtensionPoint;
import org.sonar.api.resources.Language;
import org.sonar.api.resources.Resource;
-import java.io.File;
-import java.util.List;
-
/**
* Implement this extension to get Copy/Paste detection for your language.
* @since 1.10
+ * @deprecated since 5.5
*/
@BatchSide
@ExtensionPoint
+@Deprecated
public interface CpdMapping {
Tokenizer getTokenizer();