Skip to content

Commit b110add

Browse files
committed
YARN-11577. Fix CheckStyle.
1 parent a37985e commit b110add

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/subcluster/capacity/TestYarnFederationWithCapacityScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public void testNodesLost() throws Exception {
245245
assertNotNull(nodesInfo);
246246
ArrayList<NodeInfo> nodes = nodesInfo.getNodes();
247247
assertNotNull(nodes);
248-
return (0 == nodes.size());
248+
return nodes.isEmpty();
249249
} catch (Exception e) {
250250
return false;
251251
}

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/subcluster/fair/TestYarnFederationWithFairScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public void testNodesLost() throws Exception {
250250
assertNotNull(nodesInfo);
251251
ArrayList<NodeInfo> nodes = nodesInfo.getNodes();
252252
assertNotNull(nodes);
253-
return (0 == nodes.size());
253+
return nodes.isEmpty();
254254
} catch (Exception e) {
255255
return false;
256256
}

0 commit comments

Comments
 (0)