How to suppress 'never used locally' warning for annotated method [message #250210] |
Fri, 14 December 2007 05:11 |
Eclipse User |
|
|
|
Originally posted by: mm.arcus.com.au
Is it possible to suppress the 'never used locally' warning for private
methods which have JPA annotations like @Column or @PostLoad.
I prefer not to disable the warning feature for the whole project but then
it creates these unnecessary warnings on JPA annotated private methods
which are invoked by the JPA runtime and therefore are not candidates for
removal.
|
|
|
Re: How to suppress 'never used locally' warning for annotated method [message #250214 is a reply to message #250210] |
Fri, 14 December 2007 07:01 |
Eclipse User |
|
|
|
Originally posted by: richard256.gmx.de
"Manuel Mall" <mm@arcus.com.au> wrote in message
news:459e2b15faf1c5900e67481ff20a8dbf$1@www.eclipse.org...
> Is it possible to suppress the 'never used locally' warning for private
> methods which have JPA annotations like @Column or @PostLoad.
>
> I prefer not to disable the warning feature for the whole project but then
> it creates these unnecessary warnings on JPA annotated private methods
> which are invoked by the JPA runtime and therefore are not candidates for
> removal.
@SupressWarnings("unused")
Regards
Richard
|
|
|
|
Powered by
FUDForum. Page generated in 0.05472 seconds