IDEA-194396 Merge StringConstructorInspection into RedundantStringOperationInspection

This commit is contained in:
Tagir Valeev
2018-07-02 17:45:05 +07:00
parent faf494814c
commit e616b88fa7
12 changed files with 104 additions and 214 deletions

View File

@@ -0,0 +1,6 @@
// "Replace with empty string" "true"
class Foo {
public static void main(String[] args) {
String s = "";
}
}

View File

@@ -0,0 +1,6 @@
// "Replace with argument" "true"
class Foo {
public static void main(String[] args) {
String s = "foo";
}
}

View File

@@ -0,0 +1,6 @@
// "Replace with empty string" "true"
class Foo {
public static void main(String[] args) {
String s = new Stri<caret>ng();
}
}

View File

@@ -0,0 +1,6 @@
// "Replace with argument" "true"
class Foo {
public static void main(String[] args) {
String s = new Stri<caret>ng("foo");
}
}