[scala] Remove deprecated module pmd-scala, consolidate packages

This commit is contained in:
Andreas Dangel
2024-02-23 12:34:15 +01:00
parent 3a7460de29
commit 9c5cef2566
7 changed files with 11 additions and 34 deletions

View File

@@ -5,7 +5,7 @@
package net.sourceforge.pmd.lang.scala;
import net.sourceforge.pmd.cpd.CpdLexer;
import net.sourceforge.pmd.cpd.ScalaCpdLexer;
import net.sourceforge.pmd.lang.scala.cpd.ScalaCpdLexer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.impl.SimpleLanguageModuleBase;

View File

@@ -2,10 +2,12 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.scala.cpd;
import org.apache.commons.lang3.StringUtils;
import net.sourceforge.pmd.cpd.CpdLexer;
import net.sourceforge.pmd.cpd.TokenFactory;
import net.sourceforge.pmd.cpd.impl.BaseTokenFilter;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageVersion;

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.scala.cpd;
import net.sourceforge.pmd.lang.ast.GenericToken;
import net.sourceforge.pmd.lang.document.Chars;

View File

@@ -2,15 +2,15 @@
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
package net.sourceforge.pmd.lang.scala.cpd;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.lang.test.cpd.CpdTextComparisonTest;
import net.sourceforge.pmd.lang.ast.LexException;
import net.sourceforge.pmd.lang.scala.ScalaLanguageModule;
import net.sourceforge.pmd.lang.test.cpd.CpdTextComparisonTest;
class ScalaCpdLexerTest extends CpdTextComparisonTest {
@@ -18,11 +18,6 @@ class ScalaCpdLexerTest extends CpdTextComparisonTest {
super(ScalaLanguageModule.getInstance(), ".scala");
}
@Override
protected String getResourcePrefix() {
return "../lang/scala/cpd/testdata";
}
@Test
void testSample() {
doTest("sample-LiftActor");