File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse : How to disable Type Safety (Yellow Traingle boxes ) shown in Eclipse ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Eclipse : How to disable Type Safety (Yellow Traingle boxes ) shown in Eclipse ??" Watch "Eclipse : How to disable Type Safety (Yellow Traingle boxes ) shown in Eclipse ??" New topic
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 ??
[Thumb - Postthis.jpeg]
 Filename Postthis.jpeg [Disk] 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 about
  • User the SuppressWarnings annotation to hide the errors
  • Change 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 ??
     
    developer file tools