Fixed JavadocStyle not handling package declarations that have annotations.(bug #2911363)
This commit is contained in:
parent
e99c99b5cf
commit
eeee00819b
|
|
@ -116,8 +116,11 @@ public class JavadocStyleCheck
|
|||
{
|
||||
if (shouldCheck(aAST)) {
|
||||
final FileContents contents = getFileContents();
|
||||
// Need to start searching for the comment before the annotations
|
||||
// that may exist. Even if annotations are not defined on the
|
||||
// package, the ANNOTATIONS AST is defined.
|
||||
final TextBlock cmt =
|
||||
contents.getJavadocBefore(aAST.getLineNo());
|
||||
contents.getJavadocBefore(aAST.getFirstChild().getLineNo());
|
||||
|
||||
checkComment(aAST, cmt);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@
|
|||
to have the sort behaviour as in release 5.0. (bug #2952881).
|
||||
Thanks to Steve McKay for patch #2953936.
|
||||
</li>
|
||||
<li>
|
||||
Fixed <a href="config_javadoc.html#JavadocStyle">JavadocStyle</a>
|
||||
not handling package declarations that have annotations.
|
||||
(bug #2911363)
|
||||
</li>
|
||||
</ul>
|
||||
<p>Notes:</p>
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Reference in New Issue