Fixed some of the warnings when mvn compile.