dfa: don't shadow final variable reassignments with wide irrelevant warnings (IDEA-148984)

This commit is contained in:
peter
2016-01-19 18:15:31 +01:00
parent f012d6fe41
commit 1392e7705f
3 changed files with 12 additions and 1 deletions
@@ -0,0 +1,10 @@
class Test {
void f(String value) {
final int index = -1;
while ((<error descr="Cannot assign a value to final variable 'index'">index</error> = value.indexOf('a')) != -1) {
value = value.substring(0, 1);
}
}
}