Consolidate EmptyIterator implementations

Description

Currently, Jikes RVM comes with two implementations of an "empty iterator": org.jikesrvm.util.EmptyIterator and org.jikesrvm.compilers.opt.util.EmptyIterator. Both implementations have shortcomings (no singleton iterator and no generics, respectively) and don't throw the exceptions expected of the Java 7 java.util.Collections.emptyIterator http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#emptyIterator%28%29.

The attached patch consolidates both implementations into a single, generic org.jikesrvm.util.EmptyIterator.

Environment

None

Status

Assignee

DaveG

Reporter

Andreas Sewe

Labels

None

Components

Fix versions

Affects versions

Priority

Low
Configure