fixed some Java warnings