...
Public identifier reuse decreases the readability and maintainability of code.
Rule | Severity | Likelihood |
|---|
Detectable | Repairable | Priority | Level |
|---|---|---|---|
DCL01-J | Low | Unlikely |
Yes | No | P2 | L3 |
Automated Detection
An automated tool can easily detect reuse of the set of names representing public classes or interfaces from the Java Standard Library.
Related Guidelines
Bibliography
Puzzle 67, "All Strung Out" | |
Item 16, "Prefer Interfaces to Abstract Classes" | |
| [JLS 2005] | §6.3.2, "Obscured Declarations" §6.3.1, "Shadowing Declarations" §7.5.2, "Type-Import-on-Demand Declaration" §14.4.3, "Shadowing of Names by Local Variables" |
...
...