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

Reply via email to