HADOOP-10482. Fix various findbugs warnings in hadoop-common. Contributed by Haohui Mai.