mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
19 lines
345 B
Java
19 lines
345 B
Java
// "Convert variable 's1' from String to StringBuilder (null-safe)" "false"
|
|
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
static void test(List<String> list) {
|
|
String s2 = "bar";
|
|
|
|
String s1 = s2;
|
|
|
|
for (String s : list) {
|
|
s1 +<caret>= "baz";
|
|
}
|
|
|
|
s1 += "foo";
|
|
System.out.println(s1);
|
|
}
|
|
}
|