YARN-2939. Fix new findbugs warnings in hadoop-yarn-common. (Li Lu via junping_du)