I was surrounding a method call containing a lambda expression with a try/catch block and SE proceeded to make the result 'prettier'.
Before:
public class SomeClass {
/* .... */
public SomeClass() {
setup((a,b,c)->{doMagic(a, b, b);});
}
/* .... */
}
After:
public class SomeClass {
/* .... */
public SomeClass() {
try {
setup((a,b,c)->{
doMagic(a, b, b);
});
} catch () {
}
}
/* .... */
}
You get a similar effect by entering 'try ' with auto-completion.
I realize that SE is beautifying this by the book, but I think the result is not quite as readable. Could you add some beautifier option to leave the expression alone if it is contained on a single line and just align it like a simple function argument.