void () { String <warning descr="Non-constant String 'buffer' should probably be declared as 'StringBuilder'">buffer</warning> = "bar"; for (int i = 0; i < 10; i++) { buffer = buffer + "foo" + buffer; } System.out.println(buffer); }