I recently received a downvote for using the following in a recent answer:
String word = ...; if (\"s\".equals(word) || \"y\".equals(word)
One might argue that you should (unit-)test your code enough to be confident that nulls don't go where they're not supposed to. This should obviate the need for yoda conditions.