A variable name overloading a name in an outer block
Open
migrated
Priority-Low
Status-Accepted
Type-NewCheck
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=96) created by **moladeyal@google.com** on 2013-02-27 at 10:32 AM_
---
The most typical case:
for (int i = 0; ... ) {
...
for (int i = 0; ... ) {
myArr[i] = ... // which i is it?
}
}
Its almost always an error, or at the very least a horrible practice.
Contributor guide
Assessment
This issue has not been assessed yet.