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

Changed toString representation.

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