I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cda09ea4 authored by str4d's avatar str4d
Browse files

Suppress "unchecked" warnings

parent 2a15994a
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ public class NetDbDetailFragment extends I2PFragmentBase { ...@@ -134,6 +134,7 @@ 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<String, String> p = ri.getOptionsMap(); Map<String, String> p = ri.getOptionsMap();
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) { for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) {
String key = e.getKey(); String key = e.getKey();
...@@ -152,6 +153,7 @@ public class NetDbDetailFragment extends I2PFragmentBase { ...@@ -152,6 +153,7 @@ 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<String, String> p = addr.getOptionsMap(); Map<String, String> p = addr.getOptionsMap();
for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) { for (Map.Entry<String,String> e : (Set<Map.Entry<String,String>>) p.entrySet()) {
String key = e.getKey(); String key = e.getKey();
......
...@@ -34,6 +34,7 @@ public class NetDbSummaryTableFragment extends Fragment { ...@@ -34,6 +34,7 @@ public class NetDbSummaryTableFragment extends Fragment {
return f; return f;
} }
@SuppressWarnings("unchecked")
public View onCreateView(LayoutInflater inflater, ViewGroup container, public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_table, container, false); View v = inflater.inflate(R.layout.fragment_table, container, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment