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.
Try to add the following code into the editor: if (x ! = null && adapter.isActive(context)) { x = adapter.adapt(context, x); } (please notice the space between "! =", then format the code: result: if (x { ! = null && adapter.isActive(context) } ) { x = adapter.adapt(context, x); } Expected result: No added { }, some added lines are ok, but no new text tokens.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/c4f5cda52321 http://hg.netbeans.org/main/nb-javac/rev/cea638e860dc
Integrated into 'main-silver', will be available in build *201502170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c4f5cda52321 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #249794, #249816, and #248045 fixed.