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.

Bug 249794 - {} added to ! =
Summary: {} added to ! =
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 21:15 UTC by smil
Modified: 2015-02-17 04:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description smil 2015-01-13 21:15:19 UTC
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.
Comment 2 Quality Engineering 2015-02-17 04:42:49 UTC
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.