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.
Example code: public String example(String string) { if (string == null) { try { string = "foo"; } finally { } } return string.trim(); } The hint is incorrectly shown on the trim() call. After removing the try-finally, the hint disappears. (In the original code, the try-finally was because of a lock/unlock operation.) Maybe the hint implementation treats the finally block like a catch block and believes it would fall through if the code in the try block fails.