StringBuilder result = new StringBuilder(); result.append("i = "); result.append(i); result.append(";"); return result.toString();
This code could be replaced with
String result = "i = " + i + ";"; return result;
This inspection only reports when the suggested replacement does not result in significant performance drawback on modern JVMs. In many cases the String concatenation may perform better.