I am getting this warning:
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?
I am getting this warning:
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?
To compile with -Xlint:unchecked
in IntelliJ IDEA:
Settings
dialog (Ctrl+Alt+S or ⌘ +, ) Compiler
> Java Compiler
Add following into the field Additional command line parameters
:
-Xlint:unchecked
Run your compile again
A faster solution:
Type "Additional com" and press Enter:
Type -Xlint:unchecked
> OK
Press Ctrl + Shift + F9 to recompile (or go to Build > Compile ... )
You will see the line and the column where the problem appeared
E.g.: Warning:(5,27) java: unchecked ...
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.