introduce variable: forbid duplicate replacement in for statement condition (IDEA-88758)

This commit is contained in:
anna
2012-07-13 16:07:25 +02:00
parent 5d97d62ce2
commit 7de8a25c0b
4 changed files with 61 additions and 17 deletions
@@ -0,0 +1,11 @@
public class C {
public C(int[] ints) {
for (int i = 0; i < length && ints[i] > 0; i++) {
int temp = ints[i];
System.out.println(temp);
System.out.println(temp);
System.out.println(temp);
}
}
}