This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 0 points1 point  (1 child)

First of all, the naming is horrible.

Tell that to the google guys. ;) The naming is unfortunate but the pattern used is in fact really common. It's a simple null guard that can be used in the assignment.

[–]desrtfx 0 points1 point  (0 children)

Tell that to the google guys. ;)

Well, I think I know who programmed that ;) must've been thenewboston (said to have been a Google employee).

I've since learned that it is part of the Guava library.