Changed java notifies syntax