HDFS-16370. Fix assert message for BlockInfo (#3747). Contributed by tomscut.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
2f55a6cced
commit
c2afb6a00b
|
@ -136,7 +136,7 @@ public abstract class BlockInfo extends Block
|
||||||
BlockInfo info = (BlockInfo)triplets[index * 3 + 1];
|
BlockInfo info = (BlockInfo)triplets[index * 3 + 1];
|
||||||
assert info == null ||
|
assert info == null ||
|
||||||
info.getClass().getName().startsWith(BlockInfo.class.getName()) :
|
info.getClass().getName().startsWith(BlockInfo.class.getName()) :
|
||||||
"BlockInfo is expected at " + index*3;
|
"BlockInfo is expected at " + (index * 3 + 1);
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ public abstract class BlockInfo extends Block
|
||||||
BlockInfo info = (BlockInfo)triplets[index * 3 + 2];
|
BlockInfo info = (BlockInfo)triplets[index * 3 + 2];
|
||||||
assert info == null || info.getClass().getName().startsWith(
|
assert info == null || info.getClass().getName().startsWith(
|
||||||
BlockInfo.class.getName()) :
|
BlockInfo.class.getName()) :
|
||||||
"BlockInfo is expected at " + index*3;
|
"BlockInfo is expected at " + (index * 3 + 2);
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue