Viewing: January, 2016

Jan 8

January 8, 2016

A Question of Style

Going through legacy code and I find this: if (docs != null) { if (docs.size() > 0) { … } } Since there is no else is there a good reason to not just have a single if statement? if (docs != null && docs.size() > 0) { … } Thoughts?

Posted in Java | By