Hello Jorg, absolutely, thanks a lot for your feedback too, very appreciated! Have a nice day, Simo
http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Mar 1, 2011 at 9:00 AM, Jörg Schaible <joerg.schai...@scalaris.com> wrote: > Hi Simone, > > Simone Tripodi wrote: > > [snip] > > >> @SuppressWarnings("unchecked") >> public <T> T parse(InputSource input, Class<T> returnedType) throws >> IOException, SAXException { >> . >> . >> . >> return returnedType.cast(this.root); >> } > > It would be nice, if we can start to avoid such method global suppressions, > because it hides possibly unwanted stuff. You can always assign the > annotation directly to a variable instead: > > @SuppressWarnings("unchecked") > T t = returnedType.cast(this.root); > return t; > > - Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org