3 ms·
"forgetting to add brackets when expanding a single-line if clause (and Eclipse will nag me about unnecessary brackets if I try to play it safe)" - I believe th
by joegreen 11y ago
"forgetting to add brackets when expanding a single-line if clause (and Eclipse will nag me about unnecessary brackets if I try to play it safe)" - I believe that putting every if clause's body (even one-liners) inside brackets in Java is a good practice and I have never seen Eclipse telling it's bad.
- tomjen3 11y agoHe can just set eclipse to require the brackets or make them optional.