mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
"Move assignment to field declaration" intention CCE fix
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class X {
|
||||
int i = 0;
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Move assignment to field declaration" "false"
|
||||
public class X {
|
||||
int i;
|
||||
{
|
||||
<caret>i=(i)=0; // don't throw exception
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class X {
|
||||
int i;
|
||||
{
|
||||
(i)=<caret>0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user