Java fand – two branches different