J
JTL.zheng
Hashtable<String, ItemInfo> userCart = (Hashtable<String, ItemInfo>)
session.getAttribute("userCart");
I am using Eclipse
It get a warning:
Type safety: The cast from Object to Hashtable<String,ItemInfo> is
actually checking against the erased type
Hashtable
Hashtable<String, ItemInfo> userCart = (Hashtable)
session.getAttribute("userCart");
still get a warning too:
Type safety: The expression of type Hashtable needs unchecked
conversion to conform to
Hashtable<String,ItemInfo>
what's wrong with this sentence?
how can I fix it?
Thank you very much in advance.
session.getAttribute("userCart");
I am using Eclipse
It get a warning:
Type safety: The cast from Object to Hashtable<String,ItemInfo> is
actually checking against the erased type
Hashtable
Hashtable<String, ItemInfo> userCart = (Hashtable)
session.getAttribute("userCart");
still get a warning too:
Type safety: The expression of type Hashtable needs unchecked
conversion to conform to
Hashtable<String,ItemInfo>
what's wrong with this sentence?
how can I fix it?
Thank you very much in advance.