Fixed warnings reported by -Xlint compiler option