Tag Archives: reverse equals

Yoda conditions in Java .. a dangerous technique

A common practice I have seen is the placing a constant on the left hand side of an equality statement (usually called a Yoda Condition). Typically the constant is a string, and this constant is being compared to some other object, or … Continue reading


Posted in Uncategorized | Tagged , , , , , | Leave a comment