| Author |
Unchecked cast from Object to searilizable ArrayList
|
Abhay Ram
Greenhorn
Joined: Dec 14, 2010
Posts: 7
|
|
Hi everybody i want to do like below but it shows the following warning .
Type safety: Unchecked cast from Object to
ArrayList<OfficeOfferLetter>
Code:
ArrayList<OfficeOfferLetter> allletters=new ArrayList<OfficeOfferLetter>();
allletters=(ArrayList<OfficeOfferLetter>) request.getAttribute("offerletters"):
[/code]
In the above code OfficeOfferLetter is the serealizable Bean Arraylist;
& request.getAttribute("offerletters") return the object thats why it shows above warning.
so please suggest any solution ...
thank you
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2929
|
|
|
This FAQ will be helpful.
|
Mohamed Sanaulla | My Blog
|
 |
 |
|
|
subject: Unchecked cast from Object to searilizable ArrayList
|
|
|