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

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 1818
  • Hero Points: 151
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: 1818
  • Hero Points: 151
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.