"Move assignment to field declaration" intention CCE fix

This commit is contained in:
Bas Leijdekkers
2013-09-03 21:47:43 +02:00
parent 5ce8e21c27
commit d273f7d591
4 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
// "Move assignment to field declaration" "true"
public class X {
int i = 0;
{
}
}

View File

@@ -0,0 +1,7 @@
// "Move assignment to field declaration" "false"
public class X {
int i;
{
<caret>i=(i)=0; // don't throw exception
}
}

View File

@@ -0,0 +1,7 @@
// "Move assignment to field declaration" "true"
public class X {
int i;
{
(i)=<caret>0;
}
}