Skip to content

Commit a127c35

Browse files
author
slfan1989
committed
YARN-11326. Fix CheckStyle.
1 parent b14d43b commit a127c35

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/utils/FederationClientMethod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
public class FederationClientMethod {
3030

3131
private static final Logger LOG = LoggerFactory.getLogger(FederationClientMethod.class);
32+
3233
/**
3334
* List of parameters: static and dynamic values, matchings types.
3435
*/
@@ -54,7 +55,7 @@ public FederationClientMethod(String method, Class<?>[] pTypes, Object... pParam
5455
}
5556

5657
public FederationClientMethod(String method, Class pTypes, Object pParams)
57-
throws YarnException {
58+
throws YarnException {
5859
this(method, new Class[]{pTypes}, new Object[]{pParams});
5960
}
6061

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/federation/TestFederationStateStoreServiceMetrics.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testFederationStateStoreServiceMetricInit() {
6666

6767
@Test
6868
public void testRegisterSubClusterSuccessfulCalls() {
69-
LOG.info("Test: Aggregate and method successful calls updated correctly");
69+
LOG.info("Test: Aggregate and method successful calls updated correctly.");
7070

7171
long totalGoodBefore = FederationStateStoreServiceMetrics.getNumSucceededCalls();
7272
long apiGoodBefore = FederationStateStoreServiceMetrics.
@@ -75,29 +75,29 @@ public void testRegisterSubClusterSuccessfulCalls() {
7575
// Call the registerSubCluster method
7676
goodStateStore.registerSubCluster(100);
7777

78-
Assert.assertEquals(totalGoodBefore + 1,
78+
assertEquals(totalGoodBefore + 1,
7979
FederationStateStoreServiceMetrics.getNumSucceededCalls());
80-
Assert.assertEquals(100, FederationStateStoreServiceMetrics.getLatencySucceededCalls(), 0);
81-
Assert.assertEquals(apiGoodBefore + 1,
80+
assertEquals(100, FederationStateStoreServiceMetrics.getLatencySucceededCalls(), 0);
81+
assertEquals(apiGoodBefore + 1,
8282
FederationStateStoreServiceMetrics.getNumSucceededCalls());
8383
double latencySucceessfulCalls =
8484
FederationStateStoreServiceMetrics.getLatencySucceessfulCallsForMethod(
8585
"registerSubCluster");
86-
Assert.assertEquals(100, latencySucceessfulCalls, 0);
86+
assertEquals(100, latencySucceessfulCalls, 0);
8787

8888
LOG.info("Test: Running stats correctly calculated for 2 metrics");
8989

9090
// Call the registerSubCluster method
9191
goodStateStore.registerSubCluster(200);
9292

93-
Assert.assertEquals(totalGoodBefore + 2,
93+
assertEquals(totalGoodBefore + 2,
9494
FederationStateStoreServiceMetrics.getNumSucceededCalls());
95-
Assert.assertEquals(150, FederationStateStoreServiceMetrics.getLatencySucceededCalls(), 0);
96-
Assert.assertEquals(apiGoodBefore + 2,
95+
assertEquals(150, FederationStateStoreServiceMetrics.getLatencySucceededCalls(), 0);
96+
assertEquals(apiGoodBefore + 2,
9797
FederationStateStoreServiceMetrics.getNumSucceededCalls());
9898
double latencySucceessfulCalls2 =
9999
FederationStateStoreServiceMetrics.getLatencySucceessfulCallsForMethod(
100100
"registerSubCluster");
101-
Assert.assertEquals(150, latencySucceessfulCalls2, 0);
101+
assertEquals(150, latencySucceessfulCalls2, 0);
102102
}
103103
}

0 commit comments

Comments
 (0)