Re: What is warning: [unchecked] ?



Ah, a generics question.

Firstly, the reason I wasn't seeing the warning is because I didn't
compile my class with the -Xlint:unchecked option: this tells the
compiler to flag any legacy collections (etc.) that are being accessed
without specifying the types to expect.

See this little Sun tutorial; understanding how this relates to your
class should be instructive:
http://java.sun.com/developer/JDCTechTips/2005/tt0315.html

..ed

--
www.EdmundKirwan.com - Home of The Fractal Class Composition.

.



Relevant Pages