fixed some Java compiler warnings