We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cd0bd commit 9b6a712Copy full SHA for 9b6a712
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
@@ -1259,7 +1259,7 @@ public void testBalancerDispatchHotBlockTimeInterval() {
1259
Field field1 = dispatcher.getClass().getDeclaredField("hotBlockTimeInterval");
1260
field1.setAccessible(true);
1261
Object hotBlockTimeInterval = field1.get(dispatcher);
1262
- assertEquals(1000, Long.parseLong(String.valueOf(hotBlockTimeInterval)));
+ assertEquals(1000, (long)hotBlockTimeInterval);
1263
} catch (Exception e) {
1264
Assert.fail(e.getMessage());
1265
}
0 commit comments