N
Nicolai Henriksen
Hi,
I have some old java code that use the collection classes. Now compiling
with 1.5 I get warnings like
warning: [unchecked] unchecked call to add(E) as a member of the raw
type java.util.List
My question is: Is there a way to avoid these warnings? Is there a way
to use 1.5 collection classes "the old way" that is without caring about
generics?
I like the 1.4 style of coding with collections. I do not like generics
and do not want to use them at all but is this possible with 1.5
collections?
I know I can just ignore the warnings but I am generally not interested
in ignoring warnings - I just do not see these warnings as meaningfull.
If it worked ok on 1.4 it will still work on 1.5 right?
- Nicolai
I have some old java code that use the collection classes. Now compiling
with 1.5 I get warnings like
warning: [unchecked] unchecked call to add(E) as a member of the raw
type java.util.List
My question is: Is there a way to avoid these warnings? Is there a way
to use 1.5 collection classes "the old way" that is without caring about
generics?
I like the 1.4 style of coding with collections. I do not like generics
and do not want to use them at all but is this possible with 1.5
collections?
I know I can just ignore the warnings but I am generally not interested
in ignoring warnings - I just do not see these warnings as meaningfull.
If it worked ok on 1.4 it will still work on 1.5 right?
- Nicolai