Fixed java warnings