YARN-2611. Fixing jenkins findbugs warning and TestRMWebServicesCapacitySched for branch YARN-1051. Contributed by Subru Krishnan and Carlo Curino.
Merge remote-tracking branch 'remotes/origin/YARN-1051' into YARN-1051