mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
Java: Improved inspection "Join Declaration And Assignment" - simplify handling of comments (IDEA-177132)
This commit is contained in:
+2
-3
@@ -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
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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(){}
|
||||
}
|
||||
Reference in New Issue
Block a user