Menu

#259 Printer Java: Comment and if-else problem

closed
1
2005-09-12
2003-01-25
Kees Kuip
No

Hello,

I'm using Jalopy-b10.

I noticed that comment after the else is wrongly formatted.
The original code is:
public void setState( int state )
{
if ( state == Frame.ICONIFIED )
{
}
else // state == Frame.NORMAL
{
}
}

The formatted code is:
public void setState(int state)
{
if (state == Frame.ICONIFIED) {}
else // state == Frame.NORMAL {}
}

The '{}' has become part of the comment !

I have attached my configuration.

Best Regards,
Kees Kuip

Discussion

  • Kees Kuip

    Kees Kuip - 2003-01-25
     
  • Marco Hunsicker

    Marco Hunsicker - 2003-01-26
    • labels: --> Printer Java
    • assigned_to: nobody --> marcohu
    • summary: Comment and if-else problem. --> Printer Java: Comment and if-else problem
     
  • Marco Hunsicker

    Marco Hunsicker - 2003-01-26

    Logged In: YES
    user_id=44430

    Obviously a problem with the braces cuddling setting. Will be
    fixed with the next release.

    Workaround: Disable the cuddling of braces.

    Thanks.

     
  • Marco Hunsicker

    Marco Hunsicker - 2003-07-03
    • priority: 5 --> 1
     
  • S

    S - 2005-09-12
    • milestone: --> Archive_pre_jalopy_1.5_bugs
    • status: open --> closed
     

Log in to post a comment.