A friend of mine showed me The Optimized Null Check Pattern (TM) yesterday (found in a piece of production code):
Then a colleague pointed out to me that a variation of the pattern (not as clean though) is actually used by Sun.
From the
java.util.logging.LogRecord
class: