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

This commit is contained in:
Pavel Dolgov
2018-10-08 13:34:50 +03:00
parent 23fc949735
commit d8f1620454
4 changed files with 16 additions and 76 deletions
@@ -2,8 +2,7 @@
class Test {
{/*comment 1*//*comment 2*//*comment 3*/// comment 4
// comment A
/*comment B*/
/*comment C*//*comment E*/
String ss = "hello" + /*comment D*/ " world";// comment F
/*comment B*/ /*comment C*/ /*comment E*/
String ss = "hello" + /*comment D*/ " world"; // comment F
}
}
@@ -2,7 +2,7 @@
class C {
int foo(int x) {
int b = System.in.read();
int a = x + 1;/*A*//*B*/// C
int a = x + 1; /*A*/ /*B*/ // C
return a + b;
}
}
@@ -5,7 +5,7 @@ class C {
bar();/*comment 2*//*comment 3*///comment 4
// comment A
/*comment B*/
int n = 1;// comment C
int n = 1; // comment C
}
void bar(){}
}