| Author |
Eclipse : How to disable Type Safety (Yellow Traingle boxes ) shown in Eclipse ??
|
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2229
|
|
Hi ,
Is it possible to disable the Type Safety (Yellow Traingle boxes ) shown in our code in Eclipse IDE .
Please find the screen shot of this .
and please let me know how can we diable this ??
|
| Filename |
Postthis.jpeg |
Download
|
| Description |
|
| Filesize |
81 Kbytes
|
| Downloaded: |
6 time(s) |
|
Save India From Corruption - Anna Hazare.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
You can:
fix the code Eclipse is warning you aboutUser the SuppressWarnings annotation to hide the errorsChange the warning levels via Java>Compiler>Errors\Warnings
Personally, I'd just fix the code. The warnings are there for a reason.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 2118
|
|
Paul Sturrock wrote:Personally, I'd just fix the code. The warnings are there for a reason.
Good advice. And if there's a particular specific reason why the warnings should be ignored in a particular case (which would be rare), then at least using SuppressWarnings documents that. If you change the IDE settings then someone else looking at the same code will wonder why you haven't fixed it.
|
 |
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2229
|
|
|
Thanks Paul , when i used @SuppressWarnings("unchecked") , that worked , thanks a lot .
|
 |
 |
|
|
subject: Eclipse : How to disable Type Safety (Yellow Traingle boxes ) shown in Eclipse ??
|
|
|