SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jporkkahtc on April 06, 2015, 04:27:54 pm

Title: Java Beatify: Way too much indenting.
Post by: jporkkahtc on April 06, 2015, 04:27:54 pm

Java Beautify


Align on '=' ON
does bad things to lambdas.
Given:
    int f()
    {
        SwingWorker worker = new SwingWorker<ImageIcon[] , Void>()
        {
            @Override
            public ImageIcon[] doInBackground()


Turning this option ON causes "@Override" to indent to match the "="


This problem cascades thruout "worker".
Try the default Java options, but with "Align on '='" turned on with the attached source file.
It gets a crazy amount of indenting.

Title: Re: Java Beatify: Way too much indenting.
Post by: patrick on April 06, 2015, 05:50:56 pm
Ouch.   It's not supposed to align with the '=' outside of the anonymous class you're in.  I'll take a look at it. 

Thanks for the report.
Title: Re: Java Beatify: Way too much indenting.
Post by: patrick on April 07, 2015, 06:38:33 pm
This is fixed for RC5.  Thanks for the report.