i2psnark: type arguments, unused imports, for each

This commit is contained in:
str4d
2013-11-26 00:20:03 +00:00
parent 0347c56c96
commit 2f33186e58
8 changed files with 36 additions and 50 deletions

View File

@@ -281,7 +281,7 @@ public class BDecoder
+ (char)c + "'");
indicator = 0;
List result = new ArrayList();
List<BEValue> result = new ArrayList<BEValue>();
c = getNextIndicator();
while (c != 'e')
{

View File

@@ -175,7 +175,7 @@ public class BEncoder
// Keys must be sorted. XXX - But is this the correct order?
Set<String> s = m.keySet();
List<String> l = new ArrayList(s);
List<String> l = new ArrayList<String>(s);
Collections.sort(l);
Iterator<String> it = l.iterator();