Suppress "unchecked" warnings

This commit is contained in:
str4d
2013-11-11 21:41:26 +00:00
parent 2a15994a76
commit cda09ea4f5
2 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,7 @@ public class NetDbDetailFragment extends I2PFragmentBase {
}
TableLayout stats = (TableLayout) getView().findViewById(R.id.ri_stats);
@SuppressWarnings("unchecked")
Map<String, String> p = ri.getOptionsMap();
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) {
String key = e.getKey();
@ -152,6 +153,7 @@ public class NetDbDetailFragment extends I2PFragmentBase {
if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10)))
addTableRow(table, "cost", ""+cost);
@SuppressWarnings("unchecked")
Map<String, String> p = addr.getOptionsMap();
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) {
String key = e.getKey();

View File

@ -34,6 +34,7 @@ public class NetDbSummaryTableFragment extends Fragment {
return f;
}
@SuppressWarnings("unchecked")
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_table, container, false);