Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (vkp) v1.0

...

Wiki Markup
According to the Java Language Specification \[[JLS 2005|AA. Java References#JLSBibliography#JLS 05]\] section 6.3.2 "Obscured Declarations"

...

Wiki Markup
\[[JLS 2005|AA. Java References#JLSBibliography#JLS 05]\] 6.3.2 "Obscured Declarations", 6.3.1 "Shadowing Declarations", 14.4.3 "Shadowing of Names by Local Variables"
\[[Bloch 2008|AA. Java References#BlochBibliography#Bloch 08]\] Puzzle 67: All Strung Out
\[[Kabanov 2009|AA. Java References#KabanovBibliography#Kabanov 09]\]
\[[Conventions 2009|AA. Java References#ConventionsBibliography#Conventions 09]\] 6.3 Placement
\[[FindBugs 2008|AA. Java References#FindBugsBibliography#FindBugs 08]\]:
Nm: Class names shouldn't shadow simple name of implemented interface  
Nm: Class names shouldn't shadow simple name of superclass
MF: Class defines field that masks a superclass field
MF: Method defines a variable that obscures a field

...