resolved some of the Java compiler warnings