0

Possible Duplicate:
What causes javac to issue the “uses unchecked or unsafe operations” warning

Im getting following warning. What is -xlint:unchecked. If i include -xlint:unchecked in build.xml, Im getting lot of warnings.

Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

How to resolve this. Please help

Community
  • 1
  • 1
  • 1
    Did you check [enter link description here][1]? [1]: http://stackoverflow.com/questions/197986/what-causes-javac-to-issue-the-uses-unchecked-or-unsafe-operations-warning?rq=1 – Jens Peters Jan 25 '13 at 13:32
  • In the `javac` task add option `-Xlint:unchecked`! – Andrew Thompson Jan 25 '13 at 13:32
  • Should i include @SuppressWarnings("unchecked") in all the java files to overcome this? – user1549683 Jan 25 '13 at 13:41
  • 1
    @user1549683: Absolutely not. You should avoid the unchecked operations wherever possible, and only suppress warnings when you've got a *really* good reason to. – Jon Skeet Jan 25 '13 at 13:50

0 Answers0