Nemanja Zunic :
I have this example code that I want to pass some checkstyle rules but my formatter is not properly set up.
I just want an extra indent to lambda function body and change location of its right bracket }
This is what my code looks currently when I format it (Ctrl + Alt + L
)
Optional.ofNullable(customerClient.
getActiveCustomers()).map(customer -> {
String firstName = customer.getFirstName();
String lastName = customer.getLastName();
return firstName + " " + lastName;
}).orElse(null);
but I need to change my formatter so that the code would look like this:
Optional.ofNullable(customerClient.
getActiveCustomers()).map(customer -> {
String firstName = customer.getFirstName();
String lastName = customer.getLastName();
return firstName + " " + lastName;
}
).orElse(null);
CrazyCoder :
It's a known issue. Feel free to vote.
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=307140&siteId=1