Compiler warnings in eclipse [message #196623] |
Tue, 27 February 2007 15:02 |
Eclipse User |
|
|
|
Originally posted by: tennis.comdata.com
I don't know the lingo, so I don't know how to search for the answer.
Using the latest and greatest Eclipse and Java.
When I compile, I get several icons (annotations?) on the left side of the
source window. This will be, for a warning, a little lightbulb with an
exclamation mark.
I'd prefer not to be notified of some of these warnings.
How do I turn them off on a by-type basis? Case in point, the "is hiding
a field from type" warning.
Thanks muchly,
Tony
|
|
|
Re: Compiler warnings in eclipse [message #196678 is a reply to message #196623] |
Tue, 27 February 2007 17:37 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Tony" <tennis@comdata.com> wrote in message
news:70c3379475014847858c322111fad547$1@www.eclipse.org...
>I don't know the lingo, so I don't know how to search for the answer.
>
> Using the latest and greatest Eclipse and Java.
>
> When I compile, I get several icons (annotations?) on the left side of the
> source window. This will be, for a warning, a little lightbulb with an
> exclamation mark.
>
> I'd prefer not to be notified of some of these warnings.
>
> How do I turn them off on a by-type basis? Case in point, the "is hiding
> a field from type" warning.
Take a look at the Java preferences (either in Project Properties, to
control it on a project-by-project basis, or in Window Preferences, for the
whole workspace). It's under Compiler -> Errors and Warnings. There are
dozens and dozens of 'em.
|
|
|
|
Re: Compiler warnings in eclipse [message #196980 is a reply to message #196678] |
Wed, 28 February 2007 12:09 |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Walter Harley schreef:
> "Tony" <tennis@comdata.com> wrote in message
> news:70c3379475014847858c322111fad547$1@www.eclipse.org...
>> I don't know the lingo, so I don't know how to search for the answer.
>>
>> Using the latest and greatest Eclipse and Java.
>>
>> When I compile, I get several icons (annotations?) on the left side of the
>> source window. This will be, for a warning, a little lightbulb with an
>> exclamation mark.
>>
>> I'd prefer not to be notified of some of these warnings.
>>
>> How do I turn them off on a by-type basis? Case in point, the "is hiding
>> a field from type" warning.
>
> Take a look at the Java preferences (either in Project Properties, to
> control it on a project-by-project basis, or in Window Preferences, for the
> whole workspace). It's under Compiler -> Errors and Warnings. There are
> dozens and dozens of 'em.
You can also shut down warnings for just one specific method or class,
by using @SuppressWarnings("myspecificwarning"), see
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWa rnings.html
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFF5XD5e+7xMGD3itQRApCMAJ9b1zL/+taNH8686ZwhSGyle42lMgCc CwfU
lIwFqAn6hHXfE3YPDvZCbzY=
=T8ZC
-----END PGP SIGNATURE-----
|
|
|
Powered by
FUDForum. Page generated in 0.08705 seconds