Hi
I am creating a Vector instance.
And adding elements like vectorInstance.add("myData");
To the add method I am getting warning in my
IDE (Eclipse) as following-
Type safety: The method add(Object) belongs to the raw type Vector. References to generic type Vector<E> should be parameterized
I am using jdk1.6. All I know is this is generics related warning.
What would be a good programming practice in this case?
Can you give me example? And where to check in case I get such warnings for any other classes in
java?
Thank you!
Regards,
Leena