Remove warnings from several Java source files.