This is just a bunch of appends, use the return value to chain them.
Change-Id: I7db1a134387ae6ac0b756886d06264cbb8ffa43b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
lastChar = text.charAt(text.length - 1)
badEnding = true
}
- sb.append("<a href = \"")
- sb.append(tempText)
- sb.append("\">")
- sb.append(tempText)
- sb.append("</a>")
+ sb.append("<a href = \"").append(tempText).append("\">").append(tempText).append("</a>")
- if(badEnding)
+ if (badEnding)
sb.append(lastChar)
return sb.toString