Skip to content

Commit f9de936

Browse files
committed
style
1 parent a292a6a commit f9de936

File tree

1 file changed

+4
-4
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha

1 file changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestObserverNode.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public void testObserverNodeSafeModeWithBlockLocations() throws Exception {
448448
// Return a single location, which is enough for the small file but not for the large file
449449
ExtendedBlock b = new ExtendedBlock("fake-pool", new Block(12345L, 1, 0));
450450
DatanodeInfo datanodeInfo = new DatanodeInfo.DatanodeInfoBuilder().build();
451-
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] { datanodeInfo });
451+
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] {datanodeInfo});
452452
fakeBlocks.add(fakeBlock);
453453
return new LocatedBlocks(1, false, fakeBlocks, null, true, null, ecPolicy);
454454
}).when(bmSpy).createLocatedBlocks(Mockito.any(), anyLong(),
@@ -465,7 +465,7 @@ public void testObserverNodeSafeModeWithBlockLocations() throws Exception {
465465
// Return a single location, which is enough for the small file but not for the large file
466466
ExtendedBlock b = new ExtendedBlock("fake-pool", new Block(12345L, 1024 * 3, 0));
467467
DatanodeInfo datanodeInfo = new DatanodeInfo.DatanodeInfoBuilder().build();
468-
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] { datanodeInfo });
468+
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] {datanodeInfo});
469469
fakeBlocks.add(fakeBlock);
470470
return new LocatedBlocks(1024 * 3, false, fakeBlocks, null, true, null, ecPolicy);
471471
}).when(bmSpy).createLocatedBlocks(Mockito.any(), anyLong(),
@@ -531,7 +531,7 @@ public void testObserverNodeBlockMissingRetry() throws Exception {
531531
// Return a single location, which is enough for the small file but not for the large file
532532
ExtendedBlock b = new ExtendedBlock("fake-pool", new Block(12345L, 1, 0));
533533
DatanodeInfo datanodeInfo = new DatanodeInfo.DatanodeInfoBuilder().build();
534-
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] { datanodeInfo });
534+
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] {datanodeInfo});
535535
fakeBlocks.add(fakeBlock);
536536
return new LocatedBlocks(1, false, fakeBlocks, null, true, null, ecPolicy);
537537
}).when(bmSpy).createLocatedBlocks(Mockito.any(), anyLong(),
@@ -558,7 +558,7 @@ public void testObserverNodeBlockMissingRetry() throws Exception {
558558
// Return a single location, which is enough for the small file but not for the large file
559559
ExtendedBlock b = new ExtendedBlock("fake-pool", new Block(12345L, 1024 * 3, 0));
560560
DatanodeInfo datanodeInfo = new DatanodeInfo.DatanodeInfoBuilder().build();
561-
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] { datanodeInfo });
561+
LocatedBlock fakeBlock = new LocatedBlock(b, new DatanodeInfo[] {datanodeInfo});
562562
fakeBlocks.add(fakeBlock);
563563
return new LocatedBlocks(1024 * 3, false, fakeBlocks, null, true, null, ecPolicy);
564564
}).when(bmSpy).createLocatedBlocks(Mockito.any(), anyLong(),

0 commit comments

Comments
 (0)