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

This commit is contained in:
Pavel Dolgov
2018-10-03 16:54:12 +03:00
parent f90397afe1
commit 799b769b2f
13 changed files with 176 additions and 34 deletions

View File

@@ -1,8 +1,13 @@
// "Join declaration and assignment" "GENERIC_ERROR_OR_WARNING"
class Test {
{
String ss = "hello"; // comment A
// comment B
/*comment C*/ /*comment D*/ // comment E
}
{
/*comment 1*/
/*comment 2*/
/*comment 3*/
// comment 4
// comment A
/*comment B*/
/*comment C*/
String ss = "hello" + /*comment D*/ " world";/*comment E*/// comment F
}
}