My method below needs to return a String concatenated from strings.
StringBuilder sb = new StringBuilder();
sb.append("count: ").append(this.count()).append( "\n");
return sb.toString();
In IntelliJ, the Code Inspection suggests me to replace this StringBuilder with a String like below:
String sb = "count: " + this.count() + "\n";
return sb
My impression is that StringBuilder should be used with the append method, to replace string concatenation with the plus sign. Does this code inspection suggestion make sense in IntelliJ?