google / google/error-prone

A variable name overloading a name in an outer block

Open
#96 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.