Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » turn off a warning
turn off a warning [message #198047] Wed, 09 March 2005 09:43 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Is it possible to turn off certain warnings? for example, the UID warning.
Re: turn off a warning [message #198056 is a reply to message #198047] Wed, 09 March 2005 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Sure.

See Window > Preferences > Java > Compiler on Eclipse 3.0 (> Errors/Warnings
on Eclipse 3.1M4).

HTH,
Regards,
Csaba

"zohar" <david_fire4@hotmail.com> wrote in message
news:d0mgg2$iir$1@www.eclipse.org...
> Is it possible to turn off certain warnings? for example, the UID warning.
>
>
Re: turn off a warning [message #198070 is a reply to message #198047] Wed, 09 March 2005 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomannNOSPAM.ca.ibm.com

zohar a écrit :
> Is it possible to turn off certain warnings? for example, the UID warning.
The best way is to fix it.
--
Olivier
Re: turn off a warning [message #198221 is a reply to message #198070] Thu, 10 March 2005 11:19 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
"Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
news:d0n2jq$nch$1@www.eclipse.org...
> zohar a écrit :
>> Is it possible to turn off certain warnings? for example, the UID
>> warning.
> The best way is to fix it.
> --
> Olivier

Alas, sometimes one can't! E.g. I always get "unused private field"
warnings on our famous
...
private static final String COPYRIGHT = Copyright.COPYRIGHT;
...

statements which are required to be in our code by our legals.

It would be really a heaven-sent, if there would be some possibility to
suppress specific warnings (e.g. some local option or comment
//$NO_WARN$ following a statement or something of that sort...). So one
could leave a very useful warning switched on and still not be bothered
by warnings that one has seen, but can't do anything about.

Michael
Re: turn off a warning [message #198249 is a reply to message #198221] Thu, 10 March 2005 13:50 Go to previous messageGo to next message
Steven Buroff is currently offline Steven BuroffFriend
Messages: 119
Registered: July 2009
Senior Member
"Michael Moser" <mmo@zurich.ibm.com> wrote in message
news:d0pagu$am8$1@www.eclipse.org...
> "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> news:d0n2jq$nch$1@www.eclipse.org...
>> zohar a
Re: turn off a warning [message #198269 is a reply to message #198221] Thu, 10 March 2005 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Michael Moser wrote:
>
> Alas, sometimes one can't! E.g. I always get "unused private field"
> warnings on our famous
> ...
> private static final String COPYRIGHT = Copyright.COPYRIGHT;
> ...
>
> statements which are required to be in our code by our legals.
>
> It would be really a heaven-sent, if there would be some possibility to
> suppress specific warnings (e.g. some local option or comment
> //$NO_WARN$ following a statement or something of that sort...). So one
> could leave a very useful warning switched on and still not be bothered
> by warnings that one has seen, but can't do anything about.

I'm almost positive there is a feature request in Bugzilla for exactly
that. Try searching for it to see what the status is - if it's unfixed,
add your comments and vote for it.

HTH,
Eric
Re: turn off a warning [message #198307 is a reply to message #198249] Thu, 10 March 2005 19:48 Go to previous messageGo to next message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
We are planning on adding this support in the compiler sometimes soon.
The main issue is to agree on some warning names... we have tons of warnings
javac does not have.

"Steven Buroff" <sburoff@optonline.net> wrote in message
news:d0pjb7$o9c$1@www.eclipse.org...
>
> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
> news:d0pagu$am8$1@www.eclipse.org...
> > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> > news:d0n2jq$nch$1@www.eclipse.org...
> >> zohar a
Re: turn off a warning [message #198409 is a reply to message #198307] Fri, 11 March 2005 13:49 Go to previous message
Steven Buroff is currently offline Steven BuroffFriend
Messages: 119
Registered: July 2009
Senior Member
"Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
news:d0q89k$m14$1@www.eclipse.org...
> We are planning on adding this support in the compiler sometimes soon.
> The main issue is to agree on some warning names... we have tons of
> warnings
> javac does not have.

I'm very glad to hear this. Thanks.

As far as the names, I don't think it matters very much as long as
a) They are consistent with the -Xlint:xxxx names that javac is suppossed to
use for
@SuppressWarnings.
b) They are well documented.

Thanks again. Eclipse is great!!!

Steve Buroff

>
> "Steven Buroff" <sburoff@optonline.net> wrote in message
> news:d0pjb7$o9c$1@www.eclipse.org...
>>
>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>> news:d0pagu$am8$1@www.eclipse.org...
>> > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
>> > news:d0n2jq$nch$1@www.eclipse.org...
>> >> zohar a
Previous Topic:Survey on Understanding Code
Next Topic:Getting the Java 5 annotations from an IClassFile
Goto Forum:
  


Current Time: Sat Jul 13 19:22:37 GMT 2024

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

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

Back to the top