Fixed JavadocStyle not handling package declarations that have annotations.(bug #2911363)

This commit is contained in:
Oliver Burn 2010-03-04 10:57:55 +00:00
parent e99c99b5cf
commit eeee00819b
2 changed files with 9 additions and 1 deletions

View File

@ -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);
}

View File

@ -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>