This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, the "suppress warning" option is only there for javac-standard warnings. The hint "suspicious method call" can be disabled using @SuppressWarnings("element-type-mismatch") ...well, how would one know that? I couldn't find a complete list of all NB-related hints/warnings-overrides (which is sad. Well, at least there is no list, where "element-type-mismatch" would be mentioned). So, my kindly request is: please add the "suppress warning" option for all those hints/warnings, where it would be possible.
Created attachment 159076 [details] Screenshot of "Suppress Warning" option I think that this can be closed as RESOLVED. In NetBeans 8.1, when you press Alt+Enter, you should see a "Configure '...' Hint" entry. Press the up/down arrow keys until the entry is highlighted, if necessary. Then press the right arrow key. You should see a submenu where one of the options is "Suppress Warning - ...". If you click that, then a @SuppressWarnings annotation will be automatically added. Here is a screenshot. This is all handled automatically by org.netbeans.spi.java.hints.ErrorDescriptionFactory if the hint configures suppressWarnings key(s).