Ian Wilson schreef:
> In Eclipse, this code produces a warning at "foo.nextElement()" saying
>
[quoted text clipped - 14 lines]
>
> How should I fix this?
By doing as it says:
Enumeration<Object> foo = uiDefaults.keys()
Or have a look at the API of UIDefaults, to see whether it is some more
specific Enumeration (I suppose not).
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Dale King - 30 Aug 2006 15:26 GMT
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
[quoted text clipped - 25 lines]
> Or have a look at the API of UIDefaults, to see whether it is some more
> specific Enumeration (I suppose not).
It's not. UIDefaults is a subclass of Hashtable<Object,Object> (yet
another example of inappropriate use of inheritance instead of composition).

Signature
Dale King
Ian Wilson - 30 Aug 2006 15:41 GMT
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
[quoted text clipped - 23 lines]
>
> Enumeration<Object> foo = uiDefaults.keys()
Thanks, I must read more about Generics and reduce my level of bafflement.