Move forgotten things into language specific packages

This commit is contained in:
Clément Fournier 2023-06-10 14:32:47 +02:00
parent 629e3b415c
commit 287a9a275c
No known key found for this signature in database
GPG Key ID: D7666BA1B9701B6F
9 changed files with 15 additions and 22 deletions

View File

@ -4,10 +4,10 @@
package net.sourceforge.pmd.lang.cpp;
import net.sourceforge.pmd.cpd.CPPTokenizer;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.cpp.cpd.CPPTokenizer;
import net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase;
import net.sourceforge.pmd.properties.PropertyDescriptor;
import net.sourceforge.pmd.properties.PropertyFactory;

View File

@ -2,12 +2,13 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.cpp.cpd;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.cpd.impl.JavaCCTokenFilter;
import net.sourceforge.pmd.cpd.impl.TokenizerBase;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.cpp.cpd;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.cpp.cpd;
import net.sourceforge.pmd.lang.ast.impl.javacc.BackslashEscapeTranslator;
import net.sourceforge.pmd.lang.document.Chars;

View File

@ -1,14 +1,16 @@
/**
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.cpp.cpd;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.cpd.Tokens;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
import net.sourceforge.pmd.cpd.test.LanguagePropertyConfig;
import net.sourceforge.pmd.lang.cpp.CppLanguageModule;
@ -19,11 +21,6 @@ class CPPTokenizerTest extends CpdTextComparisonTest {
super(CppLanguageModule.getInstance(), ".cpp");
}
@Override
protected String getResourcePrefix() {
return "../lang/cpp/cpd/testdata";
}
@Override
public @NonNull LanguagePropertyConfig defaultProperties() {
return dontSkipBlocks();

View File

@ -2,7 +2,7 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.cpp.cpd;
import static org.junit.jupiter.api.Assertions.assertEquals;

View File

@ -4,10 +4,10 @@
package net.sourceforge.pmd.lang.plsql;
import net.sourceforge.pmd.cpd.PLSQLTokenizer;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.impl.SimpleLanguageModuleBase;
import net.sourceforge.pmd.lang.plsql.cpd.PLSQLTokenizer;
/**
* Created by christoferdutz on 20.09.14.

View File

@ -2,8 +2,9 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.plsql.cpd;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.cpd.impl.JavaCCTokenizer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.TokenManager;

View File

@ -1,8 +1,8 @@
/**
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.plsql.cpd;
import org.junit.jupiter.api.Test;
@ -15,12 +15,6 @@ class PLSQLTokenizerTest extends CpdTextComparisonTest {
super(PLSQLLanguageModule.getInstance(), ".sql");
}
@Override
protected String getResourcePrefix() {
return "../lang/plsql/cpd/testdata";
}
@Test
void testSimple() {
doTest("sample-plsql");