This variable is not really needed and the way it is used SpotBugs
reports a (valid) dead local store. Eliminate the variable completely.
Change-Id: I4fec53be80a54bedfc7481063bf507c9f10990a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* @return string with comment in JAVA format
*/
def protected CharSequence asJavadoc(String comment) {
- if(comment === null) return ''
- var txt = comment
-
- txt = comment.trim
- txt = formatToParagraph(txt)
-
+ if (comment === null) {
+ return ''
+ }
return '''
- «wrapToDocumentation(txt)»
+ «wrapToDocumentation(formatToParagraph(comment.trim))»
'''
}