Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/stringConcatInLoop/beforeConcatWithEmpty.java
Tagir Valeev 319d4c205a ChangeToAppendUtil: do not add useless .append("")
Partially fixes IDEA-180178 String concatenation as argument to 'StringBuilder.append()' call should be smarter
2017-10-09 12:12:34 +07:00

12 lines
246 B
Java

// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(int[] ints) {
String res = "";
for (int i : ints) {
res = res <caret>+ i + "";
}
return res;
}
}