if ( javaMethod.getExceptions() != null )
{
for ( int j = 0; j < javaMethod.getExceptions().length; j++ )
{
Type exception = javaMethod.getExceptions()[j];
if ( exception.getValue().endsWith( exceptionClassName ) )
{
originalJavadocTag =
StringUtils.replace( originalJavadocTag, exceptionClassName, exception.getValue() );
if ( StringUtils.removeDuplicateWhitespace( originalJavadocTag ).trim().endsWith(
"@" + THROWS_TAG + " " + exception.getValue() ) )
{
originalJavadocTag += " if any.";
}
sb.append( originalJavadocTag );
// added qualified name
javaEntityTags.putJavadocThrowsTag( exception.getValue(), originalJavadocTag );
return;
}
}
}