various cleanups, javadocs, logging

This commit is contained in:
zzz
2009-12-26 20:00:47 +00:00
parent 1fc32c5e6f
commit 0b0e3fffe4
8 changed files with 61 additions and 22 deletions

View File

@ -99,9 +99,9 @@ public class MessageInputStream extends InputStream {
}
}
private long[] locked_getNacks() {
List ids = null;
List<Long> ids = null;
for (long i = _highestReadyBlockId + 1; i < _highestBlockId; i++) {
Long l = new Long(i);
Long l = Long.valueOf(i);
if (_notYetReadyBlocks.containsKey(l)) {
// ACK
} else {
@ -113,7 +113,7 @@ public class MessageInputStream extends InputStream {
if (ids != null) {
long rv[] = new long[ids.size()];
for (int i = 0; i < rv.length; i++)
rv[i] = ((Long)ids.get(i)).longValue();
rv[i] = ids.get(i).longValue();
return rv;
} else {
return null;