StringConcatenationInLoopsInspectionFix: fixed parenthesized append (IDEA-165968), fix renamed to "Convert variable ''{0}'' from String to {1}"

This commit is contained in:
Tagir Valeev
2016-12-28 13:40:03 +07:00
parent 69c86b0b45
commit 2c57d04054
14 changed files with 15 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
void test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
void test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Change type of 'res' to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true"
public class Main {
String test(String[] strings) {
@@ -7,7 +7,7 @@ public class Main {
if (/*before*/!res/*within*/.isEmpty()) {
res += ", ";
}
res <caret>+= s;
res = (res <caret>+ s);
}
return res;
}