Author Topic: Java Beatify: Way too much indenting.  (Read 917 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1720
  • Hero Points: 170
  • Text
Java Beatify: Way too much indenting.
« 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.


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1048
  • Hero Points: 92
Re: Java Beatify: Way too much indenting.
« Reply #1 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.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1048
  • Hero Points: 92
Re: Java Beatify: Way too much indenting.
« Reply #2 on: April 07, 2015, 06:38:33 pm »
This is fixed for RC5.  Thanks for the report.