i2psnark: MetaInfo type arguments (thx zzz)

This commit is contained in:
str4d
2013-11-26 19:54:53 +00:00
parent 9804e5b7d9
commit 85aa2fb083
3 changed files with 31 additions and 20 deletions

View File

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

View File

@@ -49,12 +49,12 @@ public class BEValue
this.value = value;
}
public BEValue(List value)
public BEValue(List<BEValue> value)
{
this.value = value;
}
public BEValue(Map value)
public BEValue(Map<String, BEValue> value)
{
this.value = value;
}
@@ -146,7 +146,7 @@ public class BEValue
{
try
{
return (List)value;
return (List<BEValue>)value;
}
catch (ClassCastException cce)
{
@@ -163,7 +163,7 @@ public class BEValue
{
try
{
return (Map)value;
return (Map<String, BEValue>)value;
}
catch (ClassCastException cce)
{