提交 b9633b12 authored 作者: Thomas Mueller's avatar Thomas Mueller

Changed toString representation.

上级 b675d415
......@@ -177,12 +177,12 @@ public class FreeSpaceBitSet {
buff.append(", ");
}
int start = set.nextClearBit(i);
buff.append(start).append('-');
buff.append(Integer.toHexString(start)).append('-');
int end = set.nextSetBit(start + 1);
if (end < 0) {
break;
}
buff.append(end - 1);
buff.append(Integer.toHexString(end - 1));
i = end + 1;
}
return buff.append(']').toString();
......
......@@ -207,9 +207,9 @@ public class FreeSpaceList {
@Override
public String toString() {
if (start + length == Integer.MAX_VALUE) {
return start + "-";
return Integer.toHexString(start) + "-";
}
return start + "-" + (start + length - 1);
return Integer.toHexString(start) + "-" + Integer.toHexString(start + length - 1);
}
}
......
......@@ -196,9 +196,9 @@ public class FreeSpaceTree {
@Override
public String toString() {
if (blocks + start == Integer.MAX_VALUE) {
return start + "-";
return Integer.toHexString(start) + "-";
}
return start + "-" + (start + blocks - 1);
return Integer.toHexString(start) + "-" + Integer.toHexString(start + blocks - 1);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论