Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/stringConcatInLoop/beforeConcatInversed.java

15 lines
320 B
Java

// "Change type of 'res' to StringBuilder" "true"
public class Main {
String test(String[] strings) {
String res = "";
for (String s : strings) {
if (!res.isEmpty()) {
res = "." + res;
}
res = s <caret>+ res;
}
return res;
}
}