Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Suppressing custom warnings
Suppressing custom warnings [message #242606] Mon, 09 April 2007 14:59 Go to next message
Eclipse UserFriend
Originally posted by: eric.bodden.mail.mcgill.ca

Hi all.

I have written a customized builder that finds potential bugs in Java
code. This builder generates warnings at places where it finds such
potential bugs.

I would like to be able to filter out those warnings by using special
SuppressWarning tokens (or at least warnings should not be shown if
SuppressWarnings("all") is stated). I am unsure how ot actually
implement the suppressing of such warnings.

Co you have any pointers for me?

Thanks a lot,
Eric
Re: Suppressing custom warnings [message #242898 is a reply to message #242606] Sat, 14 April 2007 21:26 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Hi Eric,

> I have written a customized builder that finds potential bugs in Java
> code. This builder generates warnings at places where it finds such
> potential bugs.
>
> I would like to be able to filter out those warnings by using special
> SuppressWarning tokens (or at least warnings should not be shown if
> SuppressWarnings("all") is stated). I am unsure how ot actually
> implement the suppressing of such warnings.
>
> Co you have any pointers for me?
Have you seen these (all in jdt.core):
ProblemReporter.getIrritant(int problemID)
CompilerOptions.MethodWithConstructorName etc.
CopmilerOptions.warningTokenFromIrritant(long irritant)
CompilerOptions.warningTokenToIrritant(String warningToken)

best,
Stephan
--
Stephan Herrmann
Previous Topic:OutlinePage
Next Topic:Importing resources from other projects
Goto Forum:
  


Current Time: Thu Jan 02 21:27:38 GMT 2025

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

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

Back to the top