Adding too many fields into a class it becomes a mess like this:
private static final int UNAVAILABLE = -1;
private static final int EXTERNAL_BUFFER_SIZE = 4000 * 4;
private static final int SKIP_INACCURACY_SIZE = 1200;
private Thread thread = null;
private Object dataSource;
private AudioInputStream audioInputStream;
private AudioInputStream encodedAudioInputStream;
private int encodedAudioLength = -1;
private AudioFileFormat audioFileFormat;
private SourceDataLine sourceDataLine;
I want Eclipse to reformat the code and make it better to read so I modified default formatter and have achieved this:
private static final int                UNAVAILABLE             = -1;
private static final int                EXTERNAL_BUFFER_SIZE    = 4000 * 4;
private static final int                SKIP_INACCURACY_SIZE    = 1200;
private Thread                          thread                  = null;
private Object                          dataSource;
private AudioInputStream                audioInputStream;
private AudioInputStream                encodedAudioInputStream;
private int                             encodedAudioLength      = -1;
private AudioFileFormat                 audioFileFormat;
private SourceDataLine                  sourceDataLine;
But it's still messy and I can't find how to modify the editor further to achieve this (you can see the difference in static)
(Found this piece of code here and I think it can be even more improved to create and an empty column for final):

Image of the Editor in Eclipse:

How can I do this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With