Generics warning message.
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 12:25:02 GMT
Is there a way to get rid of this warning message?
E:\com\mindprod\vercheck\VerCheck.java:575: warning: [unchecked]
unchecked cast
found : java.lang.Object
required: java.util.ArrayList<com.mindprod.vercheck.AppToWatch>
allRows = (ArrayList<AppToWatch>) ois.readObject();
the code is
ArrayList<AppToWatch> allRows = new ArrayList<AppToWatch>(30);
....
allRows = (ArrayList<AppToWatch>) ois.readObject();
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: Generics warning message.
- From: External Concepts Guild
- Re: Generics warning message.
- Prev by Date: SoapFormatter in Java
- Next by Date: The Tears Of Finding The Truth
- Previous by thread: SoapFormatter in Java
- Next by thread: Re: Generics warning message.
- Index(es):
Relevant Pages
|
|