Skip to content

Commit

Permalink
Issue checkstyle#6725: aligned javadoc/xdoc for FinalClass
Browse files Browse the repository at this point in the history
  • Loading branch information
pbludov committed May 8, 2019
1 parent 9a2f293 commit db9f7f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Expand Up @@ -31,16 +31,18 @@

/**
* <p>
* Checks that class which has only private ctors
* Checks that a class which has only private constructors
* is declared as final. Doesn't check for classes nested in interfaces
* or annotations, as they are always {@code final} there.
* </p>
* <p>
* An example of how to configure the check is:
* To configure the check:
* </p>
* <pre>
* &lt;module name="FinalClass"/&gt;
* &lt;module name=&quot;FinalClass&quot;/&gt;
* </pre>
*
* @since 3.1
*/
@FileStatefulCheck
public class FinalClassCheck
Expand Down
Expand Up @@ -92,6 +92,7 @@ public class XdocsJavaDocsTest extends AbstractModuleTestSupport {
"EqualsHashCode",
"ExplicitInitialization",
"FallThrough",
"FinalClass",
"FinalLocalVariable",
"HiddenField",
"IllegalCatch",
Expand Down
2 changes: 1 addition & 1 deletion src/xdocs/config_design.xml
Expand Up @@ -259,8 +259,8 @@ public class FooTest {
</section>

<section name="FinalClass">
<p>Since Checkstyle 3.1</p>
<subsection name="Description" id="FinalClass_Description">
<p>Since Checkstyle 3.1</p>
<p>
Checks that a class which has only private constructors is declared
as final. Doesn't check for classes nested in interfaces
Expand Down

0 comments on commit db9f7f5

Please sign in to comment.