Re: [OT] migrate Struts app from jdk 1.4 to jdk1.5

2006-08-27 Thread James Sanders
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

Re: [OT] migrate Struts app from jdk 1.4 to jdk1.5

2006-08-26 Thread Scott Van Wart
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