Fix Issue-1343: CommentDefaultAccesModifierRule now extends AbstractIgnoredAnnotationRule
This commit is contained in:
1 parent
7edaf78e4a
commit
73b3a0e6da
1 file changed
+3
-2
+3
-2
@@ -22,16 +22,17 @@ import net.sourceforge.pmd.lang.java.ast.ASTVariableDeclaratorId;
|
||||
import net.sourceforge.pmd.lang.java.ast.AbstractAnyTypeDeclaration;
|
||||
import net.sourceforge.pmd.lang.java.ast.AbstractJavaAccessNode;
|
||||
import net.sourceforge.pmd.lang.java.ast.Comment;
|
||||
import net.sourceforge.pmd.lang.java.rule.documentation.AbstractCommentRule;
|
||||
import net.sourceforge.pmd.lang.java.rule.AbstractIgnoredAnnotationRule;
|
||||
import net.sourceforge.pmd.properties.RegexProperty;
|
||||
|
||||
/**
|
||||
* Check for Methods, Fields and Nested Classes that have a default access
|
||||
* modifier
|
||||
* This class ignores all nodes annotated with @VisibleForTesting
|
||||
*
|
||||
* @author Damián Techeira
|
||||
*/
|
||||
public class CommentDefaultAccessModifierRule extends AbstractCommentRule {
|
||||
public class CommentDefaultAccessModifierRule extends AbstractIgnoredAnnotationRule {
|
||||
|
||||
private static final RegexProperty REGEX_DESCRIPTOR = RegexProperty.named("regex")
|
||||
.desc("Regular expression").defaultValue("\\/\\*\\s+(default|package)\\s+\\*\\/").uiOrder(1.0f).build();
|
||||
|
||||
Reference in new issue
Block a user