Skip to content

Commit

Permalink
Issue checkstyle#6966: aligned javadoc/xdoc for OuterTypeFilename
Browse files Browse the repository at this point in the history
  • Loading branch information
pbludov committed Aug 12, 2019
1 parent 2f8bcac commit befc508
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Expand Up @@ -28,7 +28,18 @@
import com.puppycrawl.tools.checkstyle.api.TokenTypes;

/**
* <p>
* Checks that the outer type name and the file name match.
* For example, the class {@code Foo} must be in a file named {@code Foo.java}.
* </p>
* <p>
* To configure the check:
* </p>
* <pre>
* &lt;module name=&quot;OuterTypeFilename&quot;/&gt;
* </pre>
*
* @since 5.3
*/
@FileStatefulCheck
public class OuterTypeFilenameCheck extends AbstractCheck {
Expand Down
Expand Up @@ -105,7 +105,6 @@ public class XdocsJavaDocsTest extends AbstractModuleTestSupport {
"FinalParameters",
"Indentation",
"NewlineAtEndOfFile",
"OuterTypeFilename",
"TodoComment",
"TrailingComment",
"Translation",
Expand Down
2 changes: 1 addition & 1 deletion src/xdocs/config_misc.xml
Expand Up @@ -1439,8 +1439,8 @@ key.png =value - violation
</section>

<section name="OuterTypeFilename">
<p>Since Checkstyle 5.3</p>
<subsection name="Description" id="OuterTypeFilename_Description">
<p>Since Checkstyle 5.3</p>
<p>
Checks that the outer type name and the file name match. For example,
the class <code>Foo</code> must be in a file named
Expand Down

0 comments on commit befc508

Please sign in to comment.