mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
IDEA-194396 Merge StringConstructorInspection into RedundantStringOperationInspection
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Replace with empty string" "true"
|
||||
class Foo {
|
||||
public static void main(String[] args) {
|
||||
String s = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with argument" "true"
|
||||
class Foo {
|
||||
public static void main(String[] args) {
|
||||
String s = "foo";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with empty string" "true"
|
||||
class Foo {
|
||||
public static void main(String[] args) {
|
||||
String s = new Stri<caret>ng();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace with argument" "true"
|
||||
class Foo {
|
||||
public static void main(String[] args) {
|
||||
String s = new Stri<caret>ng("foo");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user