Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
class MyVector {
  //other code
}

Risk Assessment

TODOReusing names leads to code that is harder to read and maintain and may result in security weaknesses.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

SCP03-J

?? low ??

unlikely

?? medium

P??

L??

Automated Detection

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

References

Wiki Markup
\[[Bloch 08|AA. Java References#Bloch 08]\] Puzzle 67: All Strung Out
\[[FindBugs 08|AA. Java References#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 
Java Puzzlers, 67
FINDBUGS -
1. Class names shouldn't shadow simple name of implemented interface
2. Class names shouldn't shadow simple name of superclass
3. Class defines field that masks a superclass field
4. Method defines a variable that obscures a
field