Community
Participate
Working Groups
Build Identifier: 20110916-0149 Consider the following code snippet. This code is a bit difficult to read. lastNearestSeries = nearestSeries; lastNearestItem = nearestItem; series = dataset.getSeries(lastNearestSeries); number = series.getValue(lastNearestItem); value = value.doubleValue(); period = series.getTimePeriod(lastNearestItem); time = period.getFirstMillisecond(); Consider this same code reformatted. This code is much easier to read because all of the equal signs (=) are lined up. lastNearestSeries = nearestSeries; lastNearestItem = nearestItem; series = dataset.getSeries(lastNearestSeries); number = series.getValue(lastNearestItem); value = number.doubleValue(); period = series.getTimePeriod(lastNearestItem); time = period.getFirstMillisecond(); Please improve the code formatter so that it will align (=) within a section of contiguous lines. If there is a blank line(s) breaking up two different sections of code, provide an option to ignore these blank line(s) and consider the two sections as one. If there is a non-blank line(s) breaking up two different sections of code, provide a spinner option to ignore up to N lines. Of course, method boundaries break a section regardless of the previous setting. Reproducible: Always
Workaround: You can turn the formatter on and off within the Java editor. See the 'Off/On tags' tab in a formatter profile.
*** This bug has been marked as a duplicate of bug 131292 ***
Verified for Eclipse 4.9 RC1 with Build id: I20180829-2000