Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Suppressing custom warnings
Suppressing custom warnings [message #242606] Mon, 09 April 2007 10: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 17:26 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 18:05:47 EDT 2025

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

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

Back to the top