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.
The following code yields an "unnecessary test for null" hint for the code following a try/catch that ignores an exception. public static Class<?> foo (String s) { if (s == null) { try { return Class.forName("does.not.exist"); } catch (ClassNotFoundException e) { // ignore } } if (s != null) { // unnecessary test for null appears here return Object.class; } return String.class; }
Fixed in the experimental impl; wait for the umbrella issue to close.