|
Suppressing individual Xlint warnings [message #238228 is a reply to message #442] |
Wed, 22 November 2006 11:09   |
Eclipse User |
|
|
|
Hello all,
please excuse if this is not the right place to ask this question...
I have problems with the Xlint warning "Exception swallowed in catch
block [Xlint:swallowedExceptionInCatchBlock]"
Basically, we want this warning enabled, but at some places,
after reviewing the situation we want to suppress the warning.
Adding an Annotation @SuppressWarnings("swallowedExceptionInCatchBlock")
didn't help. Can someone please point out what token to use in this
annotation to get it working? Is there any place, where all suppressable
warnings and tokens to use are documented (searching the eclipse help
didn't turn up any new information -- yes, ctrl-1 will suggest a quick
fix, but guess what, for this problem it doesn't)
thanks,
--
Hermann Vosseler
Baader Wertpapierhandelsbank
IT / Developement
|
|
|
|
|
|
|
|
|
|
|
|
Re: Suppressing individual Xlint warnings [message #238312 is a reply to message #238307] |
Wed, 22 November 2006 21:11  |
Eclipse User |
|
|
|
Ichthyostega wrote:
> just to make it clear: the warning in question is about exeption swallowed in
> catch blocks, not about an empty block. You can't silence it with a comment.
Are you sure that the warning is from Eclipse? To me, it sounds like one of those
several code analysis tools which can be added as plugins, and which report
warnings in very much the same way as Eclipse itself. They tend to be visible
in the properties dialog, and varying other places.
|
|
|
Powered by
FUDForum. Page generated in 0.12517 seconds