YARN-391. Formatting fixes for LCEResourceHandler classes. Contributed by Steve Loughran)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1445882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Siddharth Seth 2013-02-13 19:40:36 +00:00
parent 43204f0c83
commit 7bc6040ebb
3 changed files with 21 additions and 18 deletions

View File

@ -35,6 +35,9 @@ Release 2.0.4-beta - UNRELEASED
YARN-377. Use the new StringUtils methods added by HADOOP-9252 and fix YARN-377. Use the new StringUtils methods added by HADOOP-9252 and fix
TestContainersMonitor. (Chris Nauroth via szetszwo) TestContainersMonitor. (Chris Nauroth via szetszwo)
YARN-391. Formatting fixes for LCEResourceHandler classes.
(Steve Loughran via sseth)
Release 2.0.3-alpha - 2013-02-06 Release 2.0.3-alpha - 2013-02-06
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -83,12 +83,12 @@ public class CgroupsLCEResourcesHandler implements LCEResourcesHandler {
// remove extra /'s at end or start of cgroupPrefix // remove extra /'s at end or start of cgroupPrefix
if (cgroupPrefix.charAt(0) == '/') { if (cgroupPrefix.charAt(0) == '/') {
cgroupPrefix = cgroupPrefix.substring(1); cgroupPrefix = cgroupPrefix.substring(1);
} }
int len = cgroupPrefix.length(); int len = cgroupPrefix.length();
if (cgroupPrefix.charAt(len - 1) == '/') { if (cgroupPrefix.charAt(len - 1) == '/') {
cgroupPrefix = cgroupPrefix.substring(0, len - 1); cgroupPrefix = cgroupPrefix.substring(0, len - 1);
} }
// mount cgroups if requested // mount cgroups if requested