Community
Participate
Working Groups
Build 20031008 Following code once formatted doesn't look super nice: public class X { X(String s) { } protected void foo() { X a = new X(new StringBuffer("this").append("is").append ("a").append( "long") .append("argument") .toString()) { public void run() { } }; } }
old formatter was behaving somewhat better: public class X { X(String s) { } protected void foo() { X a = new X( new StringBuffer("this") .append("is") .append("a") .append("long") .append("argument") .toString()) { public void run() { } }; } }
This is a known problem. It is a cascading method invocation. We already talked about it. The only way to fix this is through fragments.
Fixed and released. Regression test added.