Skip to content

Commit d4967eb

Browse files
committed
Fix style check
1 parent 4664aee commit d4967eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ public void testBadSetup() throws Exception {
11631163
RPC.setProtocolEngine(clientConf, TestRpcService.class,
11641164
ProtobufRpcEngine.class);
11651165
TestRpcService client = null;
1166-
int numThreads = Thread.getAllStackTraces().size();
1166+
int threadCount = Thread.getAllStackTraces().size();
11671167
try {
11681168
try {
11691169
client = RPC.getProtocolProxy(
@@ -1177,8 +1177,8 @@ public void testBadSetup() throws Exception {
11771177
assertTrue("Didn't throw exception!", false);
11781178
} catch (ServiceException nfe) {
11791179
// ensure no extra threads are running.
1180-
assertEquals(numThreads, Thread.getAllStackTraces().size());
1181-
} catch (Throwable t) {
1180+
assertEquals(threadCount, Thread.getAllStackTraces().size());
1181+
} catch (Throwable t) {
11821182
assertTrue("wrong exception: " + t, false);
11831183
}
11841184
} finally {

0 commit comments

Comments
 (0)