This is nothing, but I always code them as ...
if (null == obj) { obj = new Obj(); }
instead
if (obj == null) { obj = new Obj(); }
to avoid accidental recording
if (obj = null) { obj = new Obj(); }
because
if (null = obj) { obj = new Obj(); }
will give you a compiler error
source share