Bug 49482

Summary: New Code Formatter; if/else without curly braces; guardian clause (2)
Product: [Eclipse Project] JDT Reporter: Sebastian Davids <sdavids>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M7   
Hardware: All   
OS: All   
Whiteboard:

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.