Java: Improved inspection "Join Declaration And Assignment" - simplify handling of comments (IDEA-177132)

This commit is contained in:
Pavel Dolgov
2018-10-09 13:19:54 +03:00
parent 995a97740f
commit 1402f1a2f6
3 changed files with 13 additions and 22 deletions

View File

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