Skip to content

Commit

Permalink
Issue checkstyle#4987: fixed Javadoc for minLineCount property and xdocx
Browse files Browse the repository at this point in the history
  • Loading branch information
sergileon committed Aug 29, 2017
1 parent bd18c20 commit 9150d13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -125,7 +125,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck {
private static final Pattern MATCH_JAVADOC_NOARG_CURLY =
CommonUtils.createPattern("\\{\\s*@(inheritDoc)\\s*\\}");

/** Default value of minimal amount of lines in method to demand documentation presence.*/
/** Default value of minimal amount of lines in method to allow no documentation.*/
private static final int DEFAULT_MIN_LINE_COUNT = -1;

/** The visibility scope where Javadoc comments are checked. */
Expand All @@ -134,7 +134,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck {
/** The visibility scope where Javadoc comments shouldn't be checked. */
private Scope excludeScope;

/** Minimal amount of lines in method to demand documentation presence.*/
/** Minimal amount of lines in method to allow no documentation.*/
private int minLineCount = DEFAULT_MIN_LINE_COUNT;

/**
Expand Down Expand Up @@ -202,7 +202,7 @@ public void setIgnoreMethodNamesRegex(Pattern pattern) {
}

/**
* Sets minimal amount of lines in method.
* Sets minimal amount of lines in method to allow no documentation.
* @param value user's value.
*/
public void setMinLineCount(int value) {
Expand Down
2 changes: 1 addition & 1 deletion src/xdocs/config_javadoc.xml
Expand Up @@ -212,7 +212,7 @@ public int checkReturnTag(final int aTagIndex,
</tr>
<tr>
<td>minLineCount</td>
<td>Minimal amount of lines in method to demand documentation presence.</td>
<td>Minimal amount of lines in method to allow no documentation.</td>
<td><a href="property_types.html#integer">Integer</a></td>
<td><code>-1</code></td>
<td>6.0</td>
Expand Down

0 comments on commit 9150d13

Please sign in to comment.