Generics warning message.



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
.



Relevant Pages