I have been getting rid of these warnings without using @SuppressWarnings
and in a way that I think makes the casts a bit more explicit.
I don't know what you are doing in case (1), but in case (2), you can do
this:
TreeSet mySet = new TreeSet();
for(Object jobTemplate : request.getSession().ge
Thibaut wrote:
I migrate a Struts app from jdk 1.4 to jdk1.5
I have warnings I would like to solve :
1) the clone() function
I have a "Type Safety" exeption with this kind of code :
current.setUserRights((TreeSet) this.userRights.clone());
2) Cast make a warning :
TreeSet mySet = (TreeSet)
req
2 matches
Mail list logo