forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#12326: Resolve Pitest suppression for AccessModifier…
…Option
- Loading branch information
1 parent
1cd0b57
commit c7b0c4c
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...crawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodAccessModifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
JavadocMethod | ||
allowedAnnotations = (default)Override | ||
validateThrows = (default)false | ||
accessModifiers = \tpublic | ||
allowMissingParamTags = (default)false | ||
allowMissingReturnTag = (default)false | ||
tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod; | ||
|
||
public class InputJavadocMethodAccessModifier { | ||
class classOne { | ||
|
||
} | ||
|
||
class classTwo { | ||
|
||
} | ||
|
||
/** | ||
* @return | ||
*/ | ||
public String method1() { // violation '@return tag should be present and have description' | ||
return "arbitrary_string"; | ||
} | ||
} |