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 247911 - Indentation must keep in account dependencies.
Summary: Indentation must keep in account dependencies.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 08:04 UTC by crosati
Modified: 2015-09-10 11:29 UTC (History)
1 user (show)

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 crosati 2014-10-14 08:04:00 UTC
The following code is marked to be ordered:

    public static final String SEPARATOR_CHAR = ",";
    public static final String SEPARATOR = SEPARATOR_CHAR + " ";

but after ordering it will be marked as error:

    public static final String SEPARATOR = SEPARATOR_CHAR + " ";
    public static final String SEPARATOR_CHAR = ",";

because SEPARATOR_CHAR *must* precede SEPARATOR.

Thank you,
Claudio


Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Comment 1 Svata Dedic 2015-09-10 11:29:38 UTC
Fixed in current version; the IDE has an option (default: on) to take dependencies into the account.