Community
Participate
Working Groups
Using new formatter in build 3.0 M4 (I20031009), when formatting code: public class X { String str1 = "toto", str2 = "titi", str3 = "tata"; void foo() { String str1 = "toto", str2 = "titi", str3 = "tata"; } } I get: public class X { String str1 = "toto", str2 = "titi", str3 = "tata"; void foo() { String str1 = "toto", str2 = "titi", str3 = "tata"; } } Note that long multiple instance variables declaration (not shown entirely as bugzilla break the line :(, so put some... instead): public class X { String str1 = "xxxxxxxxxx", ...,str10 = "xxxxxxxxxx"; } are well formatted: public class X { String str1 = "xxxxxxxxxx", str2 = "xxxxxxxxxx", str3 = "xxxxxxxxxx", str4 = "xxxxxxxxxx", str5 = "xxxxxxxxxx", str6 = "xxxxxxxxxx", str7 = "xxxxxxxxxx", str8 = "xxxxxxxxxx", str9 = "xxxxxxxxxx", str10 = "xxxxxxxxxx"; }
Fix is ready. Regression test added.
Fixed and released in HEAD. Regression test added.
Verified.