> Here is my code:
>
[quoted text clipped - 26 lines]
> some kind person help me with the syntax to get rid of the warning and
> have safe operations?
For generics related warning, if it is truly benign for your
application, jsut ignore it or, since Java 6, you could use
ignore warnings annotation.
Liz - 29 Oct 2006 10:43 GMT
>> Here is my code:
>>
[quoted text clipped - 29 lines]
>application, jsut ignore it or, since Java 6, you could use
>ignore warnings annotation.
Thanks for your reply. The application is working fine, so I shall
follow your advice to ignore the warning. It just seems untidy.
Tor Iver Wilhelmsen - 29 Oct 2006 20:35 GMT
> For generics related warning, if it is truly benign for your
> application, jsut ignore it or, since Java 6, you could use
> ignore warnings annotation.
@SuppressWarnings("unchecked") works fine in 1.5/5-0 as well.
hiwa - 29 Oct 2006 23:37 GMT
> > For generics related warning, if it is truly benign for your
> > application, jsut ignore it or, since Java 6, you could use
> > ignore warnings annotation.
>
> @SuppressWarnings("unchecked") works fine in 1.5/5-0 as well.
Really? Well it must be back-ported into the latest release of 1.5.
Good news!