fixed parse error in @param tags

This commit is contained in:
stefanp 2002-12-02 11:24:07 +00:00
parent 9f0699ace7
commit f29baf6c5d

View file

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