if(x!=null) x.doTheThing()
Notice two features here. 1) it's a one-legged if, with no else clause. 2) the thing that's done is *on* the non-null x object.
if(x==null) x = X.Noop;
service.call(x);
So what we did was ripple the branch out of the service into the client.
geepawhill.org
Subscribe now!