Versions Compared

Key

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

Wiki Markup
According to the Java API \[java:[API 2006|AA. Bibliography#API 06]\], interface {{Enumeration}} documentation

...

Wiki Markup
Unfortunately, a {{Vector}} and an {{Enumeration}} may not always work well together. In fact, the Java API \[java:[API 2006|AA. Bibliography#API 06]\] recommends, "New implementations should consider using {{Iterator}} in preference to {{Enumeration}}." 

...

Wiki Markup
According to the Java API \[java:[API 2006|AA. Bibliography#API 06]\], interface {{Iterator}} documentation

...

Using Enumerations when performing remove operations on a vector may cause unexpected program behavior.

Guideline Rule

Severity

Likelihood

Remediation Cost

Priority

Level

MSC12-J

low

unlikely

medium

P2

L3

...

Bibliography

Wiki Markup
\[java:[API 2006|AA. Bibliography#API 06]\] Interfaces: Enumeration and Iterator
\[java:[Daconta 2003|AA. Bibliography#Daconta 03]\] Item 21: Use Iteration over Enumeration

...