String convertDescToJavaDoc(String strDesc)
    {
        for (int i = 0; i < strDesc.length() - 1; i++)
        {
            if (strDesc.charAt(i) == '\n')
                strDesc = strDesc.substring(0, i + 1) + " * " + strDesc.substring(i + 1);
        }
        strDesc = " * " + strDesc;
        if (!strDesc.endsWith("."))
            strDesc += '.';
        return strDesc;
    }
String convertDescToJavaDoc ( String strDesc ) { for ( int i = 0 ; i < strDesc . length ( ) - 1 ; i ++ ) { if ( strDesc . charAt ( i ) == '\n' ) strDesc = strDesc . substring ( 0 , i + 1 ) + " * " + strDesc . substring ( i + 1 ) ; } strDesc = " * " + strDesc ; if ( ! strDesc . endsWith ( "." ) ) strDesc += '.' ; return strDesc ; }
Convert the description to a javadoc compatible description.
@param strDesc The original description string.
@return The new javadoc description.