Implement PR feedback

This commit is contained in:
Anne Brouwers 2022-06-28 17:19:18 +02:00
parent bedb6057de
commit 5897eb70bc
8 changed files with 21 additions and 21 deletions

View File

@ -7,8 +7,8 @@
<parent>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd</artifactId>
<version>6.46.0</version>
<relativePath>../</relativePath>
<version>6.48.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<build>

View File

@ -5,7 +5,7 @@
package net.sourceforge.pmd.cpd;
/**
* Language implementation for Gherkin
* Language implementation for Gherkin.
*/
public class GherkinLanguage extends AbstractLanguage {

View File

@ -8,10 +8,10 @@ import org.antlr.v4.runtime.CharStream;
import net.sourceforge.pmd.cpd.token.AntlrTokenFilter;
import net.sourceforge.pmd.lang.antlr.AntlrTokenManager;
import net.sourceforge.pmd.lang.gherkin.antlr4.GherkinLexer;
import net.sourceforge.pmd.lang.gherkin.ast.GherkinLexer;
/**
* The Gherkin Tokenizer
* The Gherkin Tokenizer.
*/
public class GherkinTokenizer extends AntlrTokenizer {

View File

@ -0,0 +1,8 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Contains Gherkin tokenizer and language classes.
*/
package net.sourceforge.pmd.cpd;

View File

@ -1,11 +0,0 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* The class {@link net.sourceforge.pmd.lang.gherkin.antlr4.GherkinLexer} will be moved to
* package {@code net.sourceforge.pmd.lang.gherkin.ast} with PMD 7.
*
* <p>All other classes will be removed.
*/
package net.sourceforge.pmd.lang.gherkin.antlr4;

View File

@ -0,0 +1,8 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Contains the Antlr grammar for Gherkin.
*/
package net.sourceforge.pmd.lang.gherkin.ast;

View File

@ -7,15 +7,10 @@ package net.sourceforge.pmd.cpd;
import java.util.Properties;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
public class GherkinTokenizerTest extends CpdTextComparisonTest {
@org.junit.Rule
public ExpectedException ex = ExpectedException.none();
public GherkinTokenizerTest() {
super(".feature");
}