Bug 49482 - New Code Formatter; if/else without curly braces; guardian clause (2)
Summary: New Code Formatter; if/else without curly braces; guardian clause (2)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 03:50 EST by Sebastian Davids CLA
Modified: 2004-02-11 12:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2004-01-03 03:50:14 EST
void a() {
    String s = "a";
    if (s.equals("")) //$NON-NLS-1$
        System.out.println("a");
    else
        System.out.println("b");
}

@@@@

Java Coding conventions:

void a() {
    String s = "a";
    if (s.equals("")) //$NON-NLS-1$
    System.out.println("a");
    else
        System.out.println("b");
}

@@@@

Again, the formatter should not have changed a thing.
Comment 1 Sebastian Davids CLA 2004-01-03 03:51:02 EST
bug 49481 is similar
Comment 2 Olivier Thomann CLA 2004-01-05 11:19:50 EST
Fixed and released in HEAD.
Same issue than bug 49481.
Comment 3 Frederic Fusier CLA 2004-02-11 12:47:54 EST
Verified for 3.0-M7 with build I200402102000.