I got "Obsolete Collection" tool-tip message on below import command..
import java.util.Hashtable;
what is the substitution for it?
please help
Printable View
I got "Obsolete Collection" tool-tip message on below import command..
import java.util.Hashtable;
what is the substitution for it?
please help
In the Java API documentation 1.6 the Hashtable class isn't marked deprecated. If it were most likely the HashMap class could've been a nice replacement, but it isn't deprecated. You have to show us a bit more of your code because I suspect the warning is caused by something else ...
kind regards,
Jos
HashMap.
Hashtable and Vector are the old v1 collections.
ETA: Jos, some IDEs are set so that they flag usage of Hashtable or Vector. I think FindBugs might have a rule for it, for example.