Fixed bug: JavadocStyleCheck throws StringIndexOutOfBoundsException when open tag character, <, is the last character on a line.
This commit is contained in:
parent
a7bede3cb4
commit
30a895e589
|
|
@ -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, <, is the last character on a line.</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="body">
|
||||
|
|
|
|||
|
|
@ -82,6 +82,9 @@ class HtmlTag
|
|||
*/
|
||||
public boolean isCloseTag()
|
||||
{
|
||||
if (mPosition == (mText.length() - 1)) {
|
||||
return false;
|
||||
}
|
||||
return (mText.charAt(mPosition + 1) == '/');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue