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 1: new HashSet<String>() {{ if (foo) add("foo"); if (bar) add("bar"); }}; Example 2" { class Inner { { System.out.println("Initializing!"); } }; } These show the hint "Make initializer static", although static initializers are not allowed inside inner classes.
Cannot reproduce in current dev build, possibly fixed along with issue #241344. Please check in the dev version and reopen, if the defect is still visible; thanks. *** This bug has been marked as a duplicate of bug 241344 ***