Always remember to put your inline-ifs in brackets. Seems like Java will just ignore them in some cases otherwise.