i2psnark:

- Update session options when max bandwidth changes
  - BufferedStream cleanup and comments
  - torrent name display tweak
  - findbugs
This commit is contained in:
zzz
2011-01-10 17:14:34 +00:00
parent 158063658c
commit 6670209cb3
11 changed files with 48 additions and 43 deletions

View File

@ -189,7 +189,7 @@ public class MetaInfo
if (val == null)
throw new InvalidBEncodingException("Missing length number");
long len = val.getLong();
m_lengths.add(new Long(len));
m_lengths.add(Long.valueOf(len));
l += len;
val = (BEValue)desc.get("path");
@ -438,7 +438,7 @@ public class MetaInfo
info.put("piece length", Integer.valueOf(piece_length));
info.put("pieces", piece_hashes);
if (files == null)
info.put("length", new Long(length));
info.put("length", Long.valueOf(length));
else
{
List l = new ArrayList();