Remove java conditions