public String build ( ) { final StringBuilder description = new StringBuilder ( ) ; // append occurrences description . append ( IssueDescriptionUtils . getOccurrencesTableHeader ( ) ) . append ( ' ' ) ; for ( final ErrorOccurrence error : occurrences ) { description . append ( IssueDescriptionUtils . getOccurrencesTableLine ( error ) ) ; description . append ( ' ' ) ; } // append stacktrace description . append ( "\n\n" ) ; description . append ( "*Stacktrace*" ) . append ( ' ' ) ; description . append ( "<pre class=\"javastacktrace\">" ) ; description . append ( stacktrace . trim ( ) ) . append ( "</pre>" ) ; // append version description . append ( ' ' ) . append ( IssueDescriptionUtils . DESCRIPTION_VERSION_TAG ) ; return description . toString ( ) ; }
Builds the description .