Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to suppress 'never used locally' warning for annotated method
How to suppress 'never used locally' warning for annotated method [message #250210] Fri, 14 December 2007 05:11 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to suppress 'never used locally' warning for annotated method [message #250221 is a reply to message #250214] Sat, 15 December 2007 13:18 Go to previous message
Eclipse UserFriend
Originally posted by: mm.arcus.com.au

Thanks!
Previous Topic:Refactoring packages names across source folders...
Next Topic:Accessing JavaApplicationLaunchShortcut.launch(...)
Goto Forum:
  


Current Time: Thu Nov 07 05:14:23 GMT 2024

Powered by FUDForum. Page generated in 0.05472 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top