Type argument changes caused by i2p.i2p cleanup

This commit is contained in:
str4d
2013-12-18 05:26:58 +00:00
parent d79f797558
commit 2dd1655e1e

View File

@ -130,11 +130,10 @@ public class NetDbDetailFragment extends I2PFragmentBase {
} }
TableLayout stats = (TableLayout) getView().findViewById(R.id.ri_stats); TableLayout stats = (TableLayout) getView().findViewById(R.id.ri_stats);
@SuppressWarnings("unchecked") Map<Object, Object> p = ri.getOptionsMap();
Map<String, String> p = ri.getOptionsMap(); for (Map.Entry<Object,Object> e : (Set<Map.Entry<Object,Object>>) p.entrySet()) {
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) { String key = (String)e.getKey();
String key = e.getKey(); String val = (String)e.getValue();
String val = e.getValue();
addTableRow(stats, DataHelper.stripHTML(key), DataHelper.stripHTML(val)); addTableRow(stats, DataHelper.stripHTML(key), DataHelper.stripHTML(val));
} }
} }
@ -149,11 +148,10 @@ public class NetDbDetailFragment extends I2PFragmentBase {
if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10))) if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10)))
addTableRow(table, "cost", ""+cost); addTableRow(table, "cost", ""+cost);
@SuppressWarnings("unchecked") Map<Object, Object> p = addr.getOptionsMap();
Map<String, String> p = addr.getOptionsMap(); for (Map.Entry<Object,Object> e : (Set<Map.Entry<Object,Object>>) p.entrySet()) {
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) { String key = (String)e.getKey();
String key = e.getKey(); String val = (String)e.getValue();
String val = e.getValue();
addTableRow(table, DataHelper.stripHTML(key), DataHelper.stripHTML(val)); addTableRow(table, DataHelper.stripHTML(key), DataHelper.stripHTML(val));
} }