intellij-ideawarningscompiler-warningsjavacunchecked

IntelliJ says "Warning: java: foo/bar/Baz.java uses unchecked or unsafe operations", but it doesn't say in which line it is referring to


I am getting this warning:

ScreenShot

When I click on the image, it just opens the associated Editor, but it doesn't say the line number where the warning is raised. I don't want to add @SuppressWarning("unchecked") on the whole class...

Any workaround/fix?


Solution

  • I'm not sure why your IDE does not show you generic warnings, but you can try to compile with

    -Xlint:unchecked
    

    to get more details.