Re: unchecked or unsafe operations??



Well, maybe I shouldn't have put Object in the example, I still believe
it's better to put <Object> then to put nothing, IF, and only if,
you're sure anything can be put in the collection.

It's not a case of getting rid of the compiler warnings, but a way to
show you've thought about the possible types in the collection and
Object is the only good solution.

For the given example, Drawable or Animal are probably the best
matches, but from the given code I could not be 100% sure, so I gave
Object as example.

Regards,

Bart

.



Relevant Pages

  • Re: [CHALLENGE] finding rightmost zero bit
    ... I did add it to the online version though :-) ... Regards, ... Bart ... Prev by Date: ...
    (comp.lang.fortran)
  • RE: file reading problem
    ... Chris ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: why doesnt this compile ?
    ... before responding at a particular post. ... Regards, ... Bart ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: runas replacement
    ... Also the StartInteractiveClientProcess from the msdn didn't work either. ... Regards, ... Bart ... Prev by Date: ...
    (microsoft.public.win32.programmer.kernel)
  • SATA and multiboot question
    ... FWIW there are 2 SATA plugs on the MB so I assume that ... Regards, ... John O. ... Prev by Date: ...
    (comp.sys.ibm.pc.hardware.storage)