forked from I2P_Developers/i2p.i2p
Another style tweak
This commit is contained in:
@ -765,18 +765,18 @@ public class KBucketSet<T extends SimpleDataStructure> {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder buf = new StringBuilder(1024);
|
StringBuilder buf = new StringBuilder(1024);
|
||||||
buf.append("Bucket set rooted on: ").append(_us.toString())
|
buf.append("<b>Bucket set rooted on:</b> ").append(_us.toString())
|
||||||
.append(" K=").append(BUCKET_SIZE)
|
.append(" K=").append(BUCKET_SIZE)
|
||||||
.append(" B=").append(B_VALUE)
|
.append(" B=").append(B_VALUE)
|
||||||
.append(" with ").append(size())
|
.append(" with ").append(size())
|
||||||
.append(" keys in ").append(_buckets.size()).append(" buckets:\n");
|
.append(" keys in ").append(_buckets.size()).append(" buckets:<br>\n");
|
||||||
getReadLock();
|
getReadLock();
|
||||||
try {
|
try {
|
||||||
int len = _buckets.size();
|
int len = _buckets.size();
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
KBucket<T> b = _buckets.get(i);
|
KBucket<T> b = _buckets.get(i);
|
||||||
buf.append("* Bucket ").append(i).append("/").append(len).append(": ");
|
buf.append("<b>* Bucket ").append(i).append("/").append(len).append(":</b> ");
|
||||||
buf.append(b.toString()).append("\n");
|
buf.append(b.toString()).append("<br>\n");
|
||||||
}
|
}
|
||||||
} finally { releaseReadLock(); }
|
} finally { releaseReadLock(); }
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
|
Reference in New Issue
Block a user