Removing some warnings when compile with -Xlint