I got something from a former Google employee's blog. He said Google employees used to have conventions for Java if
condition like this:
if (condition) {
return x;
} else {
return y;
}
But later inside Google it was changed to be like this:
if (condition) {
return x;
}
return y;
It seems that there are similar or duplicate questions on SO (e.g. this one), and I also checked the Oracle official Java Code Conventions for this. I'm just curious about the difference between them even if it is negligible.
I'm not looking for opinions or what people prefer, but rather whether there is any actual, discernible difference here or if it truly is just a matter of style.