Issue #2411: Fix false positive in JavadocStyle check on inheritDoc tag

This commit is contained in:
Michal Kordas 2015-10-31 14:35:08 +01:00 committed by Roman Ivanov
parent 32c3e506aa
commit 4fc7b83dc3
2 changed files with 8 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public class JavadocStyleCheck
if (!commentText.isEmpty()
&& !getEndOfSentencePattern().matcher(commentText).find()
&& !("{@inheritDoc}".equals(commentText)
&& !(commentText.startsWith("{@inheritDoc}")
&& JavadocTagInfo.INHERIT_DOC.isValidOn(ast))) {
log(comment.getStartLineNo(), NO_PERIOD);
}

View File

@ -407,4 +407,11 @@ public class InputJavadocStyle
* @throws Exception if an error occurs
*/
void bar() throws Exception {}
/**
* {@inheritDoc}
* <p>
* @throws IllegalArgumentException with errMsg as its message
*/
void inheritDocWithThrows() {}
}