Java: Convert intention "Join Declaration And Assignment" into inspection (IDEA-178919)

This commit is contained in:
Pavel Dolgov
2018-10-04 16:46:00 +03:00
parent f90397afe1
commit 799b769b2f
13 changed files with 176 additions and 34 deletions
@@ -1,8 +1,8 @@
// "Join declaration and assignment" "GENERIC_ERROR_OR_WARNING"
class Test {
{
String s<caret>s = ""; // comment A
// comment B
/*comment C*/ ss /*comment D*/ = "hello"; // comment E
}
{
String /*comment 1*/ s<caret>s /*comment 2*/ = "" /*comment 3*/; // comment 4
// comment A
/*comment B*/ ss /*comment C*/ = "hello" + /*comment D*/ " world" /*comment E*/; // comment F
}
}