aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-10-15 15:38:33 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-10-15 15:38:33 +0200
commit1927a3d99c3a8e23535680ceb29e7dbb78bda185 (patch)
treebf3cc124b36b899e776eff1198ca0ebfbd8897a4 /src
parent299a5074aee7604101fc4009ed65357a1afb6941 (diff)
parentf021ee85628260b0445f40900415e48d030471b2 (diff)
Merge pull request #547 from emdete/p0
remove warning about <> cast
Diffstat (limited to 'src')
-rw-r--r--src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java b/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
index 0534bc25..2b8ee048 100644
--- a/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
+++ b/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
@@ -47,11 +47,11 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
@Override
protected void publishResults(CharSequence constraint,
FilterResults results) {
- ArrayList<String> filteredList = (ArrayList<String>) results.values;
+ ArrayList filteredList = (ArrayList)results.values;
if (results != null && results.count > 0) {
clear();
- for (String c : filteredList) {
- add(c);
+ for (Object c : filteredList) {
+ add((String)c);
}
notifyDataSetChanged();
}
@@ -71,4 +71,4 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
public Filter getFilter() {
return domainFilter;
}
-} \ No newline at end of file
+}