Re: What is warning: [unchecked] ?
- From: iamfractal@xxxxxxxxxxx
- Date: 1 Sep 2005 06:18:59 -0700
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.
.
- Follow-Ups:
- Re: What is warning: [unchecked] ?
- From: Johannes Beekhuizen
- Re: What is warning: [unchecked] ?
- References:
- Re: What is warning: [unchecked] ?
- From: iamfractal
- Re: What is warning: [unchecked] ?
- From: Johannes Beekhuizen
- Re: What is warning: [unchecked] ?
- Prev by Date: Re: What is warning: [unchecked] ?
- Next by Date: Re: Help in static final
- Previous by thread: Re: What is warning: [unchecked] ?
- Next by thread: Re: What is warning: [unchecked] ?
- Index(es):
Relevant Pages
|