Fixed some Java warnings