Issue #2411: Fix false positive in JavadocStyle check on inheritDoc tag
This commit is contained in:
parent
32c3e506aa
commit
4fc7b83dc3
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue