-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement -Xlint:private-shadow, type-parameter-shadow (#17622)
Implemented two additional lint warnings for my bachelor project supervised by @anatoliykmetyuk. Most of the work has been done in a new `MiniPhase` class called `CheckShadowing` and running in the same mega phase as the `CheckUnused.PostTyper` mini phase. They respectively warn about : - A private field or a class parameter that shadows a super-class field. - A type parameter that shadows a type already defined in the scope. Some examples can be seen in #17612 and #17613.
- Loading branch information
Showing
18 changed files
with
672 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.