fixed parse error in @param tags
This commit is contained in:
parent
9f0699ace7
commit
f29baf6c5d
1 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,11 @@ public final class DocTag {
|
|||
String name = "";
|
||||
if (tok.hasMoreTokens ())
|
||||
name = tok.nextToken ();
|
||||
return new DocTag (kind, name, content.substring (name.length ()+1).trim ());
|
||||
String comment = "";
|
||||
try {
|
||||
comment = content.substring (name.length ()+1).trim ();
|
||||
} catch (StringIndexOutOfBoundsException e) { }
|
||||
return new DocTag (kind, name, comment);
|
||||
} else {
|
||||
return new DocTag (kind, "", content);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue