Fixed bug: JavadocStyleCheck throws StringIndexOutOfBoundsException when open tag character, <, is the last character on a line.

This commit is contained in:
Rick Giles 2004-01-18 20:08:07 +00:00
parent a7bede3cb4
commit 30a895e589
2 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,9 @@
<li class="body">MagicNumberCheck throws NumberFormatException
with negative octal and hex ints and longs.</li>
<li class="body">JavadocStyleCheck throws StringIndexOutOfBoundsException
when open tag character, &lt;, is the last character on a line.</li>
</ul>
<p class="body">

View File

@ -82,6 +82,9 @@ class HtmlTag
*/
public boolean isCloseTag()
{
if (mPosition == (mText.length() - 1)) {
return false;
}
return (mText.charAt(mPosition + 1) == '/');
}