If I have an if block w/o braces, and at the end of the if
line is a single line comment, the conversion of the code
is a bit messed up when the option to use Sun-style
braces is set (default).
Test Case:
public class Test {
public static void main(String args[]) {
if (true) // blah blah
System.out.println("Blah");
else
System.out.println("Blah Blah");
}
}
Current results
public class Test {
public static void main(String[] args) {
if (true) // blah blah
{
System.out.println("Blah");
} else
{
System.out.println("Blah Blah");
}
}
}
Desired results
public class Test {
public static void main(String[] args) {
if (true) { // blah blah
System.out.println("Blah");
} else {
System.out.println("Blah Blah");
}
}
}
Marco Hunsicker
None
None
Public
|
Date: 2002-08-18 22:38 Logged In: YES |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use