mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
Java inspection: In "Join Declaration and Assignment" intention action warn about side effects of the initializer being removed (IDEA-157727)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Join declaration and assignment" "true"
|
||||
class T {
|
||||
{
|
||||
foo(1);
|
||||
int a = foo(2);
|
||||
}
|
||||
static int foo(int n) {
|
||||
System.out.println(n);
|
||||
return n + 1;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Join declaration and assignment" "true"
|
||||
class T {
|
||||
{
|
||||
int a =<caret> foo(1);
|
||||
a = foo(2);
|
||||
}
|
||||
static int foo(int n) {
|
||||
System.out.println(n);
|
||||
return n + 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user