Jalopy comments indentation

Posted by Neil Wightman on Stack Overflow See other posts from Stack Overflow or by Neil Wightman
Published on 2011-01-14T10:59:45Z Indexed on 2011/01/14 12:53 UTC
Read the original article Hit count: 418

Filed under:
|
|

Hi All.

We use jalopy to format our code to the sun standard (well 99%).

I have 1 issue with it. It keeps moving comments to the right of the line.

E.g

// Panel
"JPanel.border", new LazyValue(packageName + "PanelBorder"), //frozen

// Button
"Button.background", new ColorUIResource(251, 251, 251), //frozen
"Button.foreground", new ColorUIResource(0, 0, 0), //frozen

But jalopy always moves the // Button to the far right.

// Panel
"JPanel.border", new LazyValue(packageName + "PanelBorder"), //frozen
                                                             // Button
"Button.background", new ColorUIResource(251, 251, 251), //frozen
"Button.foreground", new ColorUIResource(0, 0, 0), //frozen

Is there any way to stop this?

Thanks Neil

© Stack Overflow or respective owner

Related posts about java

Related posts about format