I use Eclipse 3.1m4 to coding as follows:
Class Test Implements Iterator {
Public Boolean Hasnext () {Return False;
Public integer next () {return null;}
Public void remove () {}
}
The problem appears in the next () method, the compiler is displayed above:
Type Safety: The Return Type Integer of the Method Next () of Type Test Needs Unchecked Conversion To Conform To The Return Type E of Inherited Method
This is a bug of Eclipse