Versions Compared

Key

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

...

Unfortunately, a Vector and an Enumeration may not always work well together. In fact, the Java API [API 2011] recommends, "New implementations should consider using Iterator in preference to Enumeration.". Consequently, iterators rather than enumerators should be preferred when examining iterable collections should prefer the use of iterators over enumerations.

Noncompliant Code Example

...